Function at 0x41b160
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x584c5f
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6a3b20]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov dword [esp + 0x30], 0
mov bl, byte [esp + 0x70]
xor edi, edi
mov dword [esp + 0x64], 2
test bl, bl
je 0x41b1bd
push ecx
lea eax, [esp + 0x7c]
mov ecx, esp
mov dword [esp + 0x74], esp
push eax
call dword [0x5a7cbc]
call fcn.004184b0
add esp, 4
mov edi, eax
push 1
push 0x5a9b18
call dword [0x5a7d34]
add esp, 8
mov dword [esp + 0x28], eax
push 1
push 0
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x88]
mov byte [esp + 0x74], 3
call dword [0x5a7ae8]
lea ecx, [esp + 0x28]
mov byte [esp + 0x64], 5
call dword [0x5a7d90]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
cmp ecx, 1
je 0x41b220
test ecx, ecx
je 0x41b220
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x1c]
call fcn.004070f0
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [eax + ecx*4 + 0x10]
cmp dword [edx + 4], 8
lea eax, [eax + ecx*4 + 0x10]
jne 0x41b244
cmp byte [esp + 0x7c], 0
mov eax, 0xf
je 0x41b249
mov eax, 0x11
jmp 0x41b249
mov eax, 0x13
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x80]
call dword [0x5a7ab8]
push 0x5ab750
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x70], 6
call fcn.00402ed0
add esp, 0xc
lea ecx, [esp + 0x34]
mov byte [esp + 0x64], 8
call dword [0x5a7d90]
mov edx, dword [0x5a7c68]
mov dword [esp + 0x1c], edx
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
push ecx
mov dword [eax], 0xffffffff
mov eax, esp
mov dword [eax], 2
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], esp
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x70], 9
call fcn.00404f90
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x84]
call dword [0x5a7a9c]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x64], 0xb
call fcn.00401250
test bl, bl
je 0x41b51c
mov eax, dword [0x5a7c68]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 0xc
call fcn.00404a20
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 8]
lea eax, [ecx + edx*4 + 0x10]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx + 0xc]
lea ecx, [ecx + edx*4 + 0x10]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 1
xor esi, esi
mov bl, 0xd
lea ebp, [esi + 1]
cmp eax, dword [esp + 0x40]
je 0x41b3a5
push eax
lea ecx, [esp + 0x24]
call dword [0x5a7cbc]
mov byte [esp + 0x64], 0xe
cmp dword [esp + 0x44], esi
je 0x41b386
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call dword [0x5a7cbc]
call fcn.004184b0
add esp, 4
cmp eax, edi
je 0x41b374
cmp eax, esi
jne 0x41b370
cmp edi, esi
jne 0x41b374
jmp 0x41b382
cmp edi, esi
jne 0x41b382
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00404f90
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], bl
call dword [0x5a7d90]
mov eax, dword [esp + 0x3c]
add eax, 4
xor dword [esp + 0x44], ebp
mov dword [esp + 0x3c], eax
jne 0x41b32c
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov byte [esp + 0x64], 0xc
cmp ecx, esi
je 0x41b3cb
cmp ecx, 0xffffffff
je 0x41b3f8
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x41b3f8
mov eax, dword [esp + 0x38]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41b3ee
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41b3df
push ebx
call dword [0x5a7d8c]
add esp, 4
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x4c]
call fcn.00404a20
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 8]
lea eax, [ecx + eax*4 + 0x10]
mov dword [esp + 0x4c], eax
mov edx, dword [ecx + 0xc]
lea ecx, [ecx + edx*4 + 0x10]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ebp
mov bl, 0x10
xor ebp, ebp
cmp eax, dword [esp + 0x50]
je 0x41b476
push eax
lea ecx, [esp + 0x24]
call dword [0x5a7cbc]
mov byte [esp + 0x64], bl
cmp dword [esp + 0x54], ebp
je 0x41b455
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x74]
call fcn.0041a600
mov dword [esp + 0x54], ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0xf
call dword [0x5a7d90]
mov eax, dword [esp + 0x4c]
add eax, 4
xor dword [esp + 0x54], 1
mov dword [esp + 0x4c], eax
jne 0x41b428
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov byte [esp + 0x64], 0xc
cmp ecx, ebp
je 0x41b49c
cmp ecx, 0xffffffff
je 0x41b4c9
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x41b4c9
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41b4bf
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41b4b0
push ebx
call dword [0x5a7d8c]
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov byte [esp + 0x64], 0xb
cmp ecx, ebp
je 0x41b4ef
cmp ecx, 0xffffffff
je 0x41b51c
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x41b51c
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x10]
lea edi, [eax + edx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41b512
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41b503
push ebx
call dword [0x5a7d8c]
add esp, 4
cmp byte [esp + 0x7c], 0
je 0x41b729
mov eax, dword [0x5a7c68]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x68], 0x11
call fcn.00404a20
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 8]
lea eax, [ecx + edx*4 + 0x10]
mov dword [esp + 0x4c], eax
mov edx, dword [ecx + 0xc]
lea ecx, [ecx + edx*4 + 0x10]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 1
mov esi, dword [0x5a7adc]
mov edi, dword [0x5a7d34]
xor ebp, ebp
cmp eax, dword [esp + 0x50]
je 0x41b605
push eax
lea ecx, [esp + 0x24]
call dword [0x5a7cbc]
mov byte [esp + 0x64], 0x13
cmp dword [esp + 0x54], ebp
je 0x41b5e0
push 7
push str.RESTORE
call edi
add esp, 8
mov dword [esp + 0x2c], eax
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 0x14
call esi
cmp eax, 0xffffffff
lea ecx, [esp + 0x2c]
sete bl
mov byte [esp + 0x64], 0x13
call dword [0x5a7d90]
test bl, bl
je 0x41b5dc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00404f90
mov dword [esp + 0x54], ebp
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0x12
call dword [0x5a7d90]
mov eax, dword [esp + 0x4c]
add eax, 4
xor dword [esp + 0x54], 1
mov dword [esp + 0x4c], eax
jne 0x41b573
mov eax, dword [esp + 0x48]
mov ecx, dword [eax]
mov byte [esp + 0x64], 0x11
cmp ecx, ebp
je 0x41b62b
cmp ecx, 0xffffffff
je 0x41b659
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x41b659
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41b64f
nop
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41b640
push ebx
call dword [0x5a7d8c]
add esp, 4
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x41b6d5
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x24]
call fcn.00404a20
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x70], eax
mov edx, dword [ecx]
cmp edx, ebp
je 0x41b6a0
cmp edx, 0xffffffff
je 0x41b6d1
or eax, 0xffffffff
lock xadd dword [ecx], eax
setne al
test al, al
jne 0x41b6cd
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
lea esi, [ecx + edx*4 + 0x10]
lea edi, [ecx + eax*4 + 0x10]
mov ebx, ecx
cmp edi, esi
je 0x41b6c3
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41b6b4
push ebx
call dword [0x5a7d8c]
add esp, 4
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov byte [esp + 0x64], 0xb
cmp edx, ebp
je 0x41b6f7
cmp edx, 0xffffffff
je 0x41b72d
or edx, 0xffffffff
lock xadd dword [ecx], edx
setne al
test al, al
jne 0x41b729
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
lea esi, [ecx + eax*4 + 0x10]
lea edi, [ecx + edx*4 + 0x10]
mov ebx, ecx
cmp edi, esi
je 0x41b71f
jmp 0x41b710
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41b710
push ebx
call dword [0x5a7d8c]
add esp, 4
mov eax, dword [esp + 0x70]
cmp byte [esp + 0x80], 0
je 0x41b83a
mov edx, dword [eax + 0xc]
mov esi, dword [eax + 8]
mov ecx, edx
sub ecx, esi
cmp ecx, 1
jle 0x41b83a
test ecx, ecx
jle 0x41b83a
lea edi, [eax + edx*4 + 0x10]
lea esi, [eax + esi*4 + 0x10]
cmp esi, edi
je 0x41b83a
mov ebx, dword [0x5a7c80]
lea esp, [esp]
lea eax, [esp + 0x78]
push eax
push esi
call ebx
add esp, 8
test al, al
jne 0x41b78b
add esi, 4
cmp esi, edi
jne 0x41b770
jmp 0x41b836
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 8]
lea ecx, [edx*4 + 0x10]
sub esi, ecx
sub esi, eax
sar esi, 2
test esi, esi
js 0x41b83a
mov esi, dword [eax + 0xc]
mov edi, esi
sub edi, edx
test edi, edi
jle 0x41b83a
lea edi, [eax + esi*4 + 0x10]
lea esi, [ecx + eax]
cmp esi, edi
je 0x41b83a
lea ecx, [esp + 0x78]
push ecx
push esi
call ebx
add esp, 8
test al, al
jne 0x41b7de
add esi, 4
cmp esi, edi
jne 0x41b7c6
jmp 0x41b836
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
lea edx, [ecx*4 + 0x10]
sub esi, edx
sub esi, eax
sar esi, 2
test esi, esi
js 0x41b83a
mov edx, dword [eax + 0xc]
sub edx, ecx
cmp esi, edx
jge 0x41b83a
mov ecx, dword [eax]
cmp ecx, 1
je 0x41b81c
test ecx, ecx
je 0x41b81c
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x74]
call fcn.004070f0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 8]
add ecx, esi
lea ecx, [eax + ecx*4 + 0x10]
call dword [0x5a7d90]
push esi
lea ecx, [esp + 0x74]
call dword [0x5a7aa8]
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 0xc]
sub edx, dword [eax + 8]
jne 0x41b924
push edx
push 0x5a9974
call dword [0x5a7d34]
mov ebp, dword [esp + 0x74]
add esp, 8
mov dword [ebp], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov dword [esp + 0x30], 1
mov byte [esp + 0x64], 8
test ecx, ecx
je 0x41b88a
cmp ecx, 0xffffffff
je 0x41b8b9
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x41b8b9
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41b8af
mov edi, edi
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41b8a0
push ebx
call dword [0x5a7d8c]
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 5
call dword [0x5a7d90]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov byte [esp + 0x64], 2
test ecx, ecx
je 0x41b8f6
cmp ecx, 0xffffffff
je 0x41bb2b
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x41bb2b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x10]
lea edi, [eax + edx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41bb21
mov edi, edi
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41b910
jmp 0x41bb21
cmp byte [esp + 0x7c], 0
je 0x41b9b5
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x84]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x5c]
call dword [0x5a7d50]
mov ecx, eax
call dword [0x5a7d54]
push str.RMVideoGroup::findSameDateFile
mov ecx, eax
mov byte [esp + 0x6c], 0x15
call dword [0x5a7d58]
mov esi, eax
mov ecx, dword [esi]
push 0x1fb
call dword [0x5a7ce0]
mov ecx, esi
call dword [0x5a7ccc]
mov eax, dword [eax]
push ecx
mov ecx, esp
lea edx, [esp + 0x84]
mov dword [esp + 0x34], esp
mov dword [ecx], eax
inc dword [eax + 0xc]
push edx
call fcn.004190b0
mov esi, dword [0x5a7d60]
add esp, 0xc
lea ecx, [esp + 0x7c]
call esi
lea ecx, [esp + 0x80]
mov byte [esp + 0x64], 0xb
call esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x78]
call dword [0x5a7aa0]
mov esi, eax
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x68], 0x16
call dword [0x5a7bd0]
movzx edx, word [eax]
push edx
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00405e20
add esp, 0x10
mov esi, eax
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov bl, 0x17
mov byte [esp + 0x64], bl
cmp ecx, 1
je 0x41ba10
test ecx, ecx
je 0x41ba10
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x74]
call fcn.004070f0
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 8]
lea eax, [eax + edx*4 + 0x10]
push eax
lea ecx, [esp + 0x84]
push esi
push ecx
call fcn.00402e60
mov ebp, dword [esp + 0x78]
push eax
push ebp
mov byte [esp + 0x78], 0x18
call dword [0x5a7bcc]
add esp, 0x14
lea ecx, [esp + 0x80]
mov dword [esp + 0x30], 1
mov byte [esp + 0x64], bl
call dword [0x5a7d90]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x64], 0x16
call dword [0x5a7d90]
lea ecx, [esp + 0x20]
mov byte [esp + 0x64], 0xb
call dword [0x5a7d90]
mov eax, dword [esp + 0x70]
mov ecx, dword [eax]
mov byte [esp + 0x64], 8
test ecx, ecx
je 0x41ba97
cmp ecx, 0xffffffff
je 0x41bac9
or edx, 0xffffffff
lock xadd dword [eax], edx
setne al
test al, al
jne 0x41bac9
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
lea esi, [eax + ecx*4 + 0x10]
lea edi, [eax + edx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41babf
jmp 0x41bab0
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41bab0
push ebx
call dword [0x5a7d8c]
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x64], 5
call dword [0x5a7d90]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov byte [esp + 0x64], 2
test ecx, ecx
je 0x41bafe
cmp ecx, 0xffffffff
je 0x41bb2b
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x41bb2b
mov eax, dword [esp + 0x18]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
lea esi, [eax + edx*4 + 0x10]
lea edi, [eax + ecx*4 + 0x10]
mov ebx, eax
cmp edi, esi
je 0x41bb21
sub esi, 4
mov ecx, esi
call dword [0x5a7d90]
cmp esi, edi
jne 0x41bb12
push ebx
call dword [0x5a7d8c]
add esp, 4
lea ecx, [esp + 0x74]
mov byte [esp + 0x64], 1
call dword [0x5a7c08]
lea ecx, [esp + 0x78]
mov byte [esp + 0x64], 0
call dword [0x5a7d90]
mov eax, ebp
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret