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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, edx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], ebx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0x28]
mov edx, dword [edi]
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x1c], eax
inc eax
mov dword [edi + 0x28], eax
mov ecx, dword [ebx + 0x18]
mov ebx, 0xffff8000
test ecx, ecx
je 0x4c8318
mov eax, dword [edx + 0x10]
xor ebx, ebx
add eax, 0xc
cmp dword [eax], ecx
je 0x4c8318
nop dword [eax]
lea eax, [eax + 0x10]
inc ebx
cmp dword [eax], ecx
jne 0x4c8310
mov eax, dword [edx + 0x10]
mov esi, ebx
add esi, esi
mov edx, 0x1b
mov ecx, edi
push dword [eax + esi*8]
mov eax, dword [esp + 0x1c]
push 0
push dword [eax]
call fcn.004c1c90
add esp, 0xc
test eax, eax
jne 0x4c8c01
cmp ebx, 1
je 0x4c836c
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + esi*8 + 4]
cmp byte [eax + 9], 0
je 0x4c836c
mov eax, dword [esp + 0x30]
mov edx, ebx
mov ecx, edi
push dword [eax]
push 1
push dword [eax + 0x14]
call fcn.004c1d20
add esp, 0xc
mov esi, dword [edi + 8]
test esi, esi
jne 0x4c8395
cmp dword [edi + 0x74], esi
jne 0x4c8384
mov eax, dword [edi]
test byte [eax + 0x50], 8
jne 0x4c8384
mov byte [edi + 0x17], 1
mov ecx, edi
call fcn.00498df0
mov esi, eax
test esi, esi
je 0x4c8c01
mov eax, dword [ebp + 8]
test eax, eax
js 0x4c83a6
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
jmp 0x4c83b1
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x28], ecx
mov edx, eax
mov ecx, edi
call fcn.004cbc40
mov edx, dword [edi + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
lea ecx, [edx + 1]
mov dword [edi + 0x28], ecx
test eax, eax
je 0x4c83d1
inc dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x34], ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x14], eax
cmp dword [esi + 0x78], ecx
jg 0x4c8405
push eax
push 0
push edx
mov edx, 0x76
mov ecx, esi
call fcn.00499040
lea edx, [esi + 0x70]
add esp, 0xc
mov dword [esp + 0xc], edx
jmp 0x4c8446
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea edx, [esi + 0x70]
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4], 0x76
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x34]
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x4c8461
push dword [esp + 0x24]
mov edx, 0xfffffff7
call fcn.00499b50
add esp, 4
jmp 0x4c849b
test eax, eax
jns 0x4c8469
mov eax, dword [esi + 0x74]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edx]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x4c848c
push 0xfffffffffffffff7
push dword [esp + 0x28]
mov edx, ecx
mov ecx, esi
call fcn.00499da0
add esp, 8
jmp 0x4c849b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4c849b
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov edx, dword [esp + 0x20]
mov ecx, edi
push 0x65
push dword [esp + 0x34]
push ebx
call fcn.004d6190
mov edx, dword [esi + 0x74]
add esp, 0xc
mov dword [esp + 0x30], edx
cmp dword [esi + 0x78], edx
jg 0x4c84d9
push 0
push 0
push dword [esp + 0x28]
mov edx, 0x26
mov ecx, esi
call fcn.00499040
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x4c850f
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [eax + ecx*4], 0x26
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [edi + 0x13]
test al, al
jne 0x4c851e
inc dword [edi + 0x2c]
mov edx, dword [edi + 0x2c]
jmp 0x4c852d
dec al
mov byte [edi + 0x13], al
movzx eax, al
mov edx, dword [edi + eax*4 + 0x98]
mov eax, dword [edi + 0x74]
mov ecx, edi
test eax, eax
mov dword [esp + 0x14], edx
push 0
cmovne ecx, eax
lea eax, [esp + 0x38]
push 0
push eax
push 0
push edx
push dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov byte [ecx + 0x14], 1
mov ecx, edi
call fcn.004ce690
mov ecx, dword [esi + 0x74]
add esp, 0x18
cmp dword [esi + 0x78], ecx
jg 0x4c8580
push 0
push dword [esp + 0x18]
mov edx, 0x8a
mov ecx, esi
push dword [esp + 0x18]
call fcn.00499040
add esp, 0xc
jmp 0x4c85b6
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x8a
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x34]
test edx, edx
je 0x4c85e8
mov eax, dword [edi + 8]
not edx
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4c85dc
push edx
mov edx, dword [edi + 8]
call fcn.00499860
add esp, 4
jmp 0x4c85e8
mov eax, dword [edi + 8]
mov ecx, dword [ecx + 0x40]
mov eax, dword [eax + 0x74]
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x74]
inc eax
mov dword [esp + 0x34], eax
cmp dword [esi + 0x78], ecx
jg 0x4c8611
push 0
push eax
push dword [esp + 0x28]
mov edx, 5
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4c8647
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov ecx, dword [esi + 0x74]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x34], ecx
cmp byte [eax + 0x57], 0
je 0x4c8661
mov eax, 0x5d5a30
jmp 0x4c8679
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x30]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x34]
cmp dword [ebp + 8], 0
mov dword [eax + 8], ecx
jge 0x4c86d0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4c86a2
push 0
push ebx
push dword [esp + 0x30]
mov edx, 0x90
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4c86d0
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x90
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esi + 0x74]
cmp dword [esi + 0x78], edx
jg 0x4c86f4
push ebx
push dword [esp + 0x2c]
mov edx, 0x70
mov ecx, esi
push dword [esp + 0x24]
call fcn.00499040
add esp, 0xc
mov edx, eax
jmp 0x4c872a
mov edi, dword [esp + 0x1c]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x28]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x4c8749
push dword [esp + 0x24]
mov edx, 0xfffffff7
call fcn.00499b50
mov ebx, dword [esp + 0x10]
add esp, 4
jmp 0x4c8787
test edx, edx
jns 0x4c8751
mov edx, dword [esi + 0x74]
dec edx
mov ebx, dword [esp + 0xc]
lea ecx, [edx + edx*4]
mov eax, dword [ebx]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x4c8778
push 0xfffffffffffffff7
push dword [esp + 0x28]
mov edx, ecx
mov ecx, esi
call fcn.00499da0
add esp, 8
jmp 0x4c8787
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4c8787
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf7
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x4c87a9
cmp dword [ebp + 8], 0
mov ecx, 0x11
mov edx, 1
cmovge edx, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
mov word [eax + ecx*4 - 0x12], dx
mov edx, dword [esi + 0x74]
mov dword [esp + 0x24], edx
cmp dword [esi + 0x78], edx
jg 0x4c87d2
push 0
push 0
push dword [esp + 0x18]
mov edx, 0x24
mov ecx, esi
call fcn.00499040
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x4c8804
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0x24
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x36], 0
je 0x4c8937
mov edx, dword [esi + 0x74]
mov dword [esp + 0x30], edx
cmp dword [esi + 0x78], edx
jg 0x4c883b
push 0
push 1
push 0
mov edx, 0xb
mov ecx, esi
call fcn.00499040
mov edx, eax
add esp, 0xc
mov dword [esp + 0x30], edx
jmp 0x4c8871
mov edi, dword [esp + 0x2c]
lea eax, [edx + 1]
mov dword [esi + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x28], ecx
movzx eax, word [eax + 0x32]
mov dword [esp + 0x34], eax
cmp dword [esi + 0x78], ecx
jg 0x4c88a5
push dword [esp + 0x14]
mov ecx, esi
push edx
push dword [esp + 0x18]
mov edx, 0x83
call fcn.00499040
add esp, 0xc
mov ecx, eax
jmp 0x4c88db
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov ebx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0xc]
mov dword [eax + ecx*4], 0x83
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x28]
mov eax, dword [esi]
cmp byte [eax + 0x57], 0
jne 0x4c88f5
mov eax, dword [ebx]
lea ecx, [ecx + ecx*4]
mov edx, dword [esp + 0x34]
mov byte [eax + ecx*4 + 1], 0xfd
mov dword [eax + ecx*4 + 0x10], edx
push dword [esp + 0x18]
mov edx, 2
mov ecx, edi
call fcn.004cb3f0
mov eax, dword [esi]
add esp, 4
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x4c891d
mov eax, 0x5d5a30
mov dword [eax + 8], edx
jmp 0x4c894c
mov ecx, dword [esp + 0x30]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x4c894c
mov eax, dword [edi + 0x74]
mov ecx, edi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov eax, dword [esi + 0x74]
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4c8975
push dword [esp + 0x1c]
mov edx, 0x84
mov ecx, esi
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00499040
mov edx, dword [esp + 0x28]
add esp, 0xc
jmp 0x4c89a7
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x84
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x18]
test dword [eax + 0x38], 0x200
jne 0x4c8a04
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4c89d2
push 0
push 0
push edx
mov edx, 0x88
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4c8a04
mov edi, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x88
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4c8a2b
push 0
push dword [esp + 0x18]
mov edx, 0x89
mov ecx, esi
push dword [esp + 0x24]
call fcn.00499040
mov edx, dword [esp + 0x20]
add esp, 0xc
jmp 0x4c8a5d
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x89
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x74]
test eax, eax
jle 0x4c8a77
lea ecx, [eax + eax*4]
mov edi, 0x10
mov eax, dword [ebx]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [esp + 0x2c]
test edx, edx
je 0x4c8a8f
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x4c8a8f
movzx eax, al
mov dword [edi + eax*4 + 0x98], edx
inc byte [edi + 0x13]
mov ecx, dword [esi + 0x74]
mov edi, dword [esp + 0x10]
cmp dword [esi + 0x78], ecx
jg 0x4c8ab3
push 0
push dword [esp + 0x2c]
mov edx, 3
mov ecx, esi
push edi
call fcn.00499040
add esp, 0xc
jmp 0x4c8ae1
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 3
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x4c8af3
mov eax, 0x5d5a30
jmp 0x4c8b07
mov ecx, dword [esp + 0x24]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [ebx]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4c8b2b
push 0
push 0
push dword [esp + 0x28]
mov edx, 0x79
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4c8b5d
mov edx, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4c8b7e
push 0
push 0
push dword [esp + 0x24]
mov edx, 0x79
mov ecx, esi
call fcn.00499040
add esp, 0xc
jmp 0x4c8bb0
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x4c8bd3
push 0
push 0
push edi
mov edx, 0x79
mov ecx, esi
call fcn.00499040
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebx]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret