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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62fd50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x6d45e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0x14]
mov dword [esi + 0xc], ebx
dec ebx
mov ebx, dword [ebp + 0x10]
je 0x494792
cmp ebx, 0xffffffff
je 0x494705
cmp dword [esi + 0x14], 0
jne 0x494705
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
cmp eax, 0xfffffffe
je 0x494727
cmp eax, 0xffffffff
jne 0x494843
lea ecx, [esp + 0x2c]
call fcn.00476560
mov ecx, dword [esi + 4]
add ecx, 0x30
jmp 0x494782
mov edx, dword [esi + 4]
mov ecx, ebx
cmp dword [edx + 0x7c], ebx
mov eax, dword [edx + 0x78]
cmovb ecx, dword [edx + 0x7c]
mov dword [edx + 0x80], eax
mov dword [edx + 0x84], ecx
mov ecx, dword [esi + 4]
lea eax, [ecx + 0x80]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00475f70
mov edx, dword [esi + 4]
mov ecx, dword [eax]
mov dword [edx + 0x80], ecx
lea ecx, [esp + 0x14]
mov eax, dword [eax + 4]
mov dword [edx + 0x84], eax
mov edx, 1
call fcn.0047e2d0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
add ecx, 8
push eax
call fcn.0047cc20
cmp dword [esi + 0x14], 0
jne 0x49485d
mov ecx, dword [esi + 4]
lea eax, [esi + 0x14]
push 0
push eax
push 0
push 0
push 0x476240
mov dword [esi + 0x1c], 0
call fcn.00476090
mov dword [esi + 0x10], eax
cmp eax, 0xfffffffe
jne 0x494823
mov edi, dword [esi + 4]
cmp dword [edi + 0x84], 0
je 0x494974
push dword [edi + 0x84]
push dword [edi + 0x80]
push dword [edi + 4]
call fcn.004fa540
mov ecx, dword [edi + 0x84]
xor ebx, ebx
add esp, 0xc
test eax, eax
cmovg ebx, eax
cmp ebx, ecx
jbe 0x494805
mov eax, dword [esi + 4]
xor edx, edx
xor ecx, ecx
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], ecx
jmp 0x494788
mov edx, dword [edi + 0x80]
mov eax, dword [esi + 4]
add edx, ebx
sub ecx, ebx
mov dword [eax + 0x80], edx
mov dword [eax + 0x84], ecx
jmp 0x494788
cmp eax, 0xffffffff
je 0x4948c0
cmp eax, 1
je 0x4948c0
cmp dword [ebp + 0x14], 0
jne 0x494887
mov ebx, dword [ebp + 0x10]
jmp 0x4946ee
cmp eax, 1
jne 0x49485d
lea ecx, [esp + 0x3c]
call fcn.00476560
mov ecx, dword [esi + 4]
push eax
add ecx, 0x30
call fcn.0047cc20
mov ecx, dword [esi + 4]
lea eax, [esi + 0x14]
push eax
call fcn.00475fc0
push eax
lea ecx, [esi + 0x20]
call fcn.004a4810
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push esi
push ecx
mov eax, dword [eax + 0x78]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push ecx
mov ecx, dword [ecx + 0x40]
mov dword [esp + 0x30], 0
call fcn.004a4690
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, 1
lea ecx, [esp + 0x1c]
call fcn.0047e2d0
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x38]
mov edx, dword [ecx + 0x3c]
cmp eax, dword [esp + 0x1c]
jne 0x494952
cmp edx, dword [esp + 0x20]
jne 0x494952
mov edx, 2
lea ecx, [esp + 0x14]
call fcn.0047e2d0
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
add ecx, 0x30
call fcn.0047cc20
mov edi, dword [esi + 4]
push dword [edi + 0x68]
push dword [edi + 0x64]
push dword [edi + 4]
call fcn.004fa3b0
xor ecx, ecx
lea edx, [esp + 0x28]
add esp, 0xc
test eax, eax
cmovg ecx, eax
mov eax, dword [edi + 0x64]
cmp dword [edi + 0x68], ecx
push esi
cmovb ecx, dword [edi + 0x68]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi]
mov dword [esp + 0x20], eax
call fcn.00499dc0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ecx + 0x38]
mov ecx, dword [ecx + 0x30]
push esi
push eax
call fcn.004a4750
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push ecx
push 1
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], SysStringLen
call fcn.00474150
add esp, 4
lea ecx, [esp + 0x28]
push eax
call fcn.00481340
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
cmp eax, dword [esp + 0x24]
jne 0x494a2d
cmp edx, dword [esp + 0x28]
jne 0x494a2d
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0xffffffff
push eax
push ecx
push 2
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], SysStringLen
call fcn.00474150
add esp, 4
lea ecx, [esp + 0x20]
push eax
call fcn.00481340
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push eax
add ecx, 8
call fcn.0047cc20
mov ecx, dword [esi + 4]
push esi
mov eax, dword [ecx + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x7c]
mov ecx, dword [esi]
push ecx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [ecx + 0x40]
call fcn.004a4690
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ecx + 0x10]
mov ecx, dword [ecx + 8]
push esi
push eax
call fcn.004a4750
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10