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

Disassembly:
sub esp, 0x58
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x60]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push edi
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edi
lea ebx, [edi + 0x30]
mov edx, eax
sub ecx, eax
lea esp, [esp]
mov ebp, dword [ecx + edx]
cmp ebp, dword [edx]
jne 0x4c0484
sub ebx, 4
add edx, 4
cmp ebx, 4
jae 0x4c0470
jmp 0x4c048c
mov eax, dword [eax + 0x10]
inc eax
mov dword [esp + 0x2c], eax
call fcn.004c00e0
mov ebp, eax
cmp ebp, edi
jne 0x4c08dd
mov ebx, dword [esi + 0x44]
cmp ebx, edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x20], ebx
jne 0x4c0588
mov eax, 0x2de218
bswap eax
mov edx, 0x377f0682
bswap edx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x70]
mov dword [esp + 0x40], edx
mov ecx, edi
mov edx, eax
bswap ecx
bswap edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
test eax, eax
jne 0x4c04e9
lea eax, [esi + 0x54]
push eax
push 8
call fcn.004b1ad0
add esp, 8
mov edx, dword [esi + 0x58]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], ecx
xor edx, edx
lea eax, [esp + 0x40]
xor ecx, ecx
nop
mov ebp, dword [eax]
add ebp, edx
add ecx, ebp
mov ebp, dword [eax + 4]
add eax, 4
add ebp, ecx
add edx, ebp
add eax, 4
lea ebp, [esp + 0x58]
cmp eax, ebp
jb 0x4c0500
mov eax, ecx
bswap eax
mov dword [esp + 0x58], eax
push 0
mov eax, edx
bswap eax
mov dword [esi + 0x50], edx
push 0
mov dword [esp + 0x64], eax
mov eax, dword [esi + 8]
push 0x20
lea edx, [esp + 0x4c]
mov dword [esi + 0x24], edi
mov byte [esi + 0x41], 0
mov dword [esi + 0x4c], ecx
mov byte [esi + 0x2f], 1
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov ebp, eax
add esp, 0x14
test ebp, ebp
jne 0x4c08db
cmp byte [esi + 0x30], al
je 0x4c0588
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x4c0588
mov eax, dword [esi + 8]
mov edx, dword [eax]
and ecx, 0x13
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4c08db
mov edx, dword [esp + 0x7c]
mov ecx, dword [esi + 8]
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [edi + 0x18]
mov dword [esp + 0x50], edx
cdq
push edx
mov dword [esp + 0x58], edi
mov edi, eax
push edi
push 0
push ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edx
call fcn.00539150
mov ebx, dword [esp + 0x28]
add eax, 0x20
adc edx, 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
test ebx, ebx
je 0x4c06cb
cmp dword [esp + 0x2c], 0
je 0x4c0667
cmp dword [ebx + 0x10], 0
jne 0x4c05f3
cmp dword [esp + 0x78], 0
jne 0x4c0667
mov ecx, dword [ebx + 0x18]
lea eax, [esp + 0x3c]
push eax
push ecx
push esi
mov dword [esp + 0x48], 0
call fcn.004bfde0
mov ebp, dword [esp + 0x48]
add esp, 0xc
cmp ebp, dword [esp + 0x2c]
jb 0x4c0667
mov eax, dword [esp + 0x34]
push eax
push edi
lea edx, [ebp - 1]
push 0
push edx
call fcn.00539150
mov ecx, dword [esi + 0x68]
add eax, 0x38
adc edx, 0
test ecx, ecx
je 0x4c0639
cmp ebp, ecx
jae 0x4c063c
mov dword [esi + 0x68], ebp
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esi + 8]
push edx
push ecx
call fcn.004aebe0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x4c08db
mov eax, 0xffbf
and word [ebx + 0x1c], ax
jmp 0x4c06c0
inc dword [esp + 0x20]
cmp dword [esp + 0x78], 0
je 0x4c067e
cmp dword [ebx + 0x10], 0
jne 0x4c067e
mov eax, dword [esp + 0x74]
jmp 0x4c0680
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push eax
mov ecx, ebx
lea edi, [esp + 0x4c]
call fcn.004c0240
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4c08db
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x30]
add eax, 0x18
cdq
add dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
adc dword [esp + 0x14], edx
or word [ebx + 0x1c], 0x40
mov ebx, dword [ebx + 0x10]
test ebx, ebx
jne 0x4c05db
cmp dword [esp + 0x78], 0
je 0x4c083a
cmp dword [esi + 0x68], 0
je 0x4c06f4
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.004c02b0
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x4c08db
mov eax, dword [esp + 0x7c]
test al, 0x20
je 0x4c07d8
cmp byte [esi + 0x31], 0
je 0x4c07c3
mov ecx, dword [esi + 8]
call fcn.004bab00
cdq
mov ebx, eax
mov ecx, eax
add ecx, dword [esp + 0x10]
mov edi, edx
adc edx, dword [esp + 0x14]
push edi
sub ecx, 1
push ebx
sbb edx, 0
push edx
push ecx
call fcn.00539190
push edi
push ebx
push edx
push eax
call fcn.00539150
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
cmp eax, ecx
jne 0x4c0756
cmp edx, dword [esp + 0x14]
jne 0x4c0756
mov ebx, 1
jmp 0x4c0758
xor ebx, ebx
cmp dword [esp + 0x14], edx
jg 0x4c07bb
jl 0x4c076a
cmp ecx, eax
jae 0x4c07bb
jmp 0x4c076a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push eax
push ecx
mov ecx, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x30]
lea edi, [esp + 0x4c]
call fcn.004c0240
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x4c08db
mov eax, dword [esp + 0x6c]
add eax, 0x18
cdq
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
adc eax, edx
inc dword [esp + 0x1c]
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
jl 0x4c0766
jg 0x4c07bb
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0x48]
jb 0x4c0766
test ebx, ebx
je 0x4c07d8
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
and eax, 0x13
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
add esp, 8
mov ebp, eax
cmp byte [esi + 0x2f], 0
je 0x4c083a
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x10]
test ebx, ebx
jl 0x4c083a
jg 0x4c07ee
test edi, edi
jb 0x4c083a
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
add ecx, edx
mov edx, dword [esp + 0x30]
push eax
push edx
push 0
push ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
call fcn.00539150
add eax, 0x20
adc edx, 0
cmp edx, ebx
jl 0x4c0822
jg 0x4c082a
cmp eax, edi
ja 0x4c082a
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
mov edi, esi
call fcn.004bf670
add esp, 8
mov byte [esi + 0x2f], 0
mov edi, dword [esp + 0x28]
mov ebx, dword [esi + 0x44]
test edi, edi
je 0x4c086b
test ebp, ebp
jne 0x4c08db
test byte [edi + 0x1c], 0x40
je 0x4c0864
mov eax, dword [edi + 0x18]
push eax
inc ebx
push ebx
push esi
call fcn.004be7a0
add esp, 0xc
mov ebp, eax
mov edi, dword [edi + 0x10]
test edi, edi
jne 0x4c0845
test ebp, ebp
jne 0x4c08db
cmp dword [esp + 0x1c], 0
jle 0x4c08a6
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x18]
dec dword [esp + 0x1c]
push edx
inc ebx
push ebx
push esi
call fcn.004be7a0
mov ebp, eax
add esp, 0xc
test ebp, ebp
je 0x4c086f
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.005273c3
add esp, 0x58
ret
test ebp, ebp
jne 0x4c08db
mov eax, dword [esp + 0x6c]
mov ecx, eax
sar ecx, 0x10
and eax, 0xff00
or ecx, eax
mov word [esi + 0x42], cx
mov dword [esi + 0x44], ebx
cmp dword [esp + 0x78], ebp
je 0x4c08db
mov edx, dword [esp + 0x74]
inc dword [esi + 0x3c]
mov dword [esi + 0x48], edx
mov edx, esi
call fcn.004be4f0
mov dword [esi + 0xc], ebx
mov eax, ebp
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005273c3
add esp, 0x58
ret