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

Disassembly:
sub esp, 0xc8
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xdc]
xor edx, edx
xor ebx, ebx
cmp eax, ebx
setne dl
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
add edx, 2
mov dword [esp + 0x2c], edx
lea esp, [esp]
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
push eax
push ecx
call fcn.004a90e0
add esp, 0x10
cmp eax, ebx
jne 0x4c055f
mov edx, dword [esi + 0x24]
push edx
lea ecx, [esp + 0x9c]
call fcn.004c7a60
mov edi, dword [esi + 0x24]
push edi
lea ecx, [esp + 0xbc]
call fcn.004c7a60
mov ebp, dword [edi + 8]
mov edi, dword [edi + 0xc]
lea ecx, [esp + 0xb8]
call fcn.004c7a50
cmp ebp, ebx
mov eax, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
jne 0x4c01cb
cmp edi, ebx
je 0x4c054e
jmp 0x4c01cb
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x30], eax
call fcn.004be680
mov esi, dword [eax + 8]
cmp esi, ebx
mov edi, dword [eax + 0xc]
jne 0x4c01fb
cmp edi, ebx
je 0x4c0406
push edi
push esi
call fcn.004b9fc0
push edi
push esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], edi
call fcn.004b9fc0
push edi
push esi
mov ebp, eax
call fcn.004b9fe0
push ebp
call dword [0x10078080]
cmp dword [esp + 0x4c], ebx
jne 0x4c022d
cmp dword [esp + 0x50], ebx
je 0x4c029f
mov esi, dword [esp + 0x44]
push esi
call dword [0x1007806c]
test eax, eax
jne 0x4c029f
cmp dword [esi + 0x30], ebx
jne 0x4c0246
cmp dword [esi + 0x34], ebx
je 0x4c0267
mov eax, dword [esi + 0x30]
cmp eax, ebx
mov ecx, dword [esi + 0x34]
jne 0x4c0254
cmp ecx, ebx
je 0x4c0261
push ecx
push eax
call fcn.004b9fa0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
cmp dword [esi + 0x40], ebx
jne 0x4c0271
cmp dword [esi + 0x44], ebx
je 0x4c0292
mov eax, dword [esi + 0x40]
cmp eax, ebx
mov ecx, dword [esi + 0x44]
jne 0x4c027f
cmp ecx, ebx
je 0x4c028c
push ecx
push eax
call fcn.004b9fa0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
push eax
push ecx
call fcn.004b9fa0
mov edi, dword [esp + 0x10]
lea esi, [ebp + 0x18]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x44], ebx
cmp dword [esi], ebx
je 0x4c0415
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 0x24]
push edx
push eax
call fcn.004be290
mov ecx, dword [esp + 0xdc]
cmp ecx, dword [esi]
je 0x4c057f
lea edx, [esp + 0x40]
push edx
push esi
lea ecx, [edi + 0x60]
call fcn.004bec50
test eax, eax
je 0x4c04ba
cmp dword [0x100b7158], ebx
mov edi, dword [esp + 0x40]
je 0x4c0372
mov eax, dword [esi]
push 0x10083774
push eax
push 0x1008375c
push edi
lea ecx, [esp + 0x70]
call fcn.004ab5a0
push eax
push 0x10083750
lea ecx, [esp + 0xa0]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bcd00
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbbe0
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x8c]
call fcn.004bba80
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x4c0372
push eax
call fcn.004c17d0
add esp, 4
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
push edi
call dword [0x1007808c]
cmp dword [0x100b7158], ebx
je 0x4c04ba
mov ecx, dword [esi]
push 0x10083744
push ecx
push 0x1008375c
push edi
lea ecx, [esp + 0x80]
call fcn.004ab5a0
push eax
push 0x10083750
lea ecx, [esp + 0x94]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bcd00
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbbe0
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x80]
call fcn.004bba80
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x4c04ba
push eax
call fcn.004c17d0
add esp, 4
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
jmp 0x4c04ba
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
xor ebp, ebp
jmp 0x4c0221
mov edx, dword [edi + 0x5c]
test edx, edx
jne 0x4c04b0
mov eax, dword [edi + 0x58]
push eax
call dword [0x1007808c]
push 0x18
call fcn.004a8640
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4c04ac
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi], 0x10083610
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call dword [0x10078114]
mov dword [esi + 0x14], eax
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
lea edi, [esi + 0x10]
push edi
push ebx
push esi
push 0x10018a70
push ebx
push ebx
call dword [0x100781f0]
mov dword [esi + 0xc], eax
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
mov dword [esp + 0x24], esi
call ecx
mov ecx, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
push edi
add ecx, 0xa8
call fcn.004bf450
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
jmp 0x4c04ba
xor esi, esi
jmp 0x4c0464
mov ecx, dword [edi + 0x58]
push ecx
call dword [0x1007808c]
cmp dword [esp + 0x38], ebx
jne 0x4c04c6
cmp dword [esp + 0x3c], ebx
je 0x4c0534
push ebp
call dword [0x1007806c]
test eax, eax
jne 0x4c0534
cmp dword [ebp + 0x30], ebx
jne 0x4c04db
cmp dword [ebp + 0x34], ebx
je 0x4c04fc
mov eax, dword [ebp + 0x30]
cmp eax, ebx
mov ecx, dword [ebp + 0x34]
jne 0x4c04e9
cmp ecx, ebx
je 0x4c04f6
push ecx
push eax
call fcn.004b9fa0
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
cmp dword [ebp + 0x40], ebx
jne 0x4c0506
cmp dword [ebp + 0x44], ebx
je 0x4c0527
mov eax, dword [ebp + 0x40]
cmp eax, ebx
mov ecx, dword [ebp + 0x44]
jne 0x4c0514
cmp ecx, ebx
je 0x4c0521
push ecx
push eax
call fcn.004b9fa0
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.004b9fa0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4c01c7
cmp dword [esp + 0x1c], ebx
jne 0x4c01c7
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x98]
call fcn.004c7a50
jmp 0x4c0160
cmp eax, 1
je 0x4c05c8
cmp eax, 2
jne 0x4c0160
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc8
ret 8
cmp dword [esp + 0x38], ebx
jne 0x4c058b
cmp dword [esp + 0x3c], ebx
je 0x4c05aa
push ebp
call dword [0x1007806c]
test eax, eax
jne 0x4c05aa
mov ecx, ebp
call fcn.004bdb40
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.004b9fa0
lea ecx, [esp + 0x98]
call fcn.004c7a50
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc8
ret 8
lea edi, [esi + 0xa8]
mov ecx, edi
call fcn.004cd840
cmp eax, ebx
mov dword [esp + 0x14], eax
je 0x4c0625
lea ecx, [ecx]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.004fa350
mov esi, dword [eax]
cmp esi, ebx
je 0x4c05fa
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
cmp dword [esi + 0xc], ebx
je 0x4c0617
mov eax, dword [esi + 0x14]
push eax
call dword [0x1007808c]
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push ecx
call fcn.004a9070
add esp, 8
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
cmp dword [esp + 0x14], ebx
jne 0x4c05e0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc8
ret 8