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

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov al, byte [ecx]
mov byte [esp + 0xb], al
movzx eax, al
push esi
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0x28], edi
test ecx, ecx
je 0x4c79d0
movzx eax, byte [ecx + 1]
jmp 0x4c79d2
xor eax, eax
mov esi, dword [esp + 0x50]
mov dword [esp + 0x24], eax
test esi, esi
je 0x4c79e9
cmp dword [esi], 0
jne 0x4c7a03
xor esi, esi
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x48]
test eax, eax
jne 0x4c7a07
push dword [esp + 0x5c]
push dword [esi + 0xc]
push edi
call fcn.004a1120
add esp, 0xc
jmp 0x4c7a07
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0x1c]
mov esi, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
mov ebp, dword [eax]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x30], ebp
test eax, eax
jne 0x4c7a44
test edx, edx
je 0x4c7a38
mov eax, dword [edx]
test byte [edx + 0x20], 1
mov eax, dword [eax]
lea ecx, [eax + 1]
cmovne ecx, eax
add dword [ebx + 0x2c], ecx
mov dword [esp + 0x18], ecx
mov eax, dword [ebx + 0x2c]
inc eax
mov dword [esi + 0xc], eax
add dword [ebx + 0x2c], ebp
jmp 0x4c7a53
mov ecx, dword [ebx + 0x2c]
add eax, ebp
cmp eax, ecx
jle 0x4c7a53
lea eax, [ecx + ebp]
mov dword [ebx + 0x2c], eax
cmp dword [esp + 0x4c], 0
mov dword [esi + 0x10], ebp
mov esi, dword [esi + 0xc]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
jl 0x4c7acd
test ebp, ebp
jle 0x4c7c02
xor ebx, ebx
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4c7a90
lea eax, [ebx + esi]
push eax
push ebx
push dword [esp + 0x54]
push 0x5e
push edi
call fcn.004b0300
add esp, 0x14
jmp 0x4c7abf
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0x10], 0
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x4c]
mov dword [ecx + 4], eax
lea eax, [ebx + esi]
mov dword [ecx + 0xc], eax
inc ebx
cmp ebx, ebp
jl 0x4c7a72
mov ebx, dword [esp + 0x44]
jmp 0x4c7c02
mov cl, byte [esp + 0x13]
cmp cl, 3
je 0x4c7c02
cmp cl, 0xa
je 0x4c7aed
cmp cl, 9
je 0x4c7aed
cmp cl, 0xd
je 0x4c7aed
xor al, al
jmp 0x4c7aef
mov al, 1
mov byte [esp + 0x4c], al
test edx, edx
je 0x4c7bbd
cmp dword [esp + 0x24], 0
jne 0x4c7bbd
cmp cl, 0xc
je 0x4c7bbd
cmp cl, 0xe
je 0x4c7bbd
mov ecx, dword [edx]
or al, 0xc
mov byte [esp + 0x4c], al
mov eax, dword [edx + 4]
mov dword [esp + 0x2c], eax
cmp eax, dword [ecx]
jge 0x4c7b7b
mov ebx, dword [esp + 0x50]
mov esi, eax
mov ebp, dword [esp + 0x48]
lea edi, [esi + esi*4]
shl edi, 2
nop dword [eax + eax]
movzx eax, word [ecx + edi + 0x18]
test eax, eax
je 0x4c7b5d
lea ecx, [eax + eax*4]
mov dx, si
sub dx, word [ebx + 4]
mov eax, dword [ebp + 0x1c]
inc dx
mov word [eax + ecx*4 + 4], dx
mov ecx, dword [ebx]
inc esi
add edi, 0x14
cmp esi, dword [ecx]
jl 0x4c7b40
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx]
test eax, eax
jle 0x4c7bbd
lea edi, [ecx + 0x18]
mov ebx, eax
mov edx, esi
nop
movzx ecx, word [edi]
lea edi, [edi + 0x14]
xor eax, eax
test cx, cx
cmove eax, edx
mov edx, eax
lea eax, [ebp - 1]
cmove eax, ebp
mov ebp, eax
sub ebx, 1
jne 0x4c7b90
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x48]
mov al, byte [esp + 0x4c]
mov dword [esp + 0x38], esi
mov byte [esp + 0x3c], al
cmp dword [ecx + 8], 0
je 0x4c7bef
test al, 8
je 0x4c7bef
cmp dword [esp + 0x18], 0
jle 0x4c7bef
lea eax, [esp + 0x38]
mov dword [esp + 0x20], 0
mov dword [edx + 0x24], eax
jmp 0x4c7c06
push dword [esp + 0x4c]
push 0
push esi
push dword [ecx + 0x1c]
push ebx
call fcn.004d8a60
add esp, 0x14
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x24], 0
je 0x4c7c5c
push dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
push dword [ecx + 0x1c]
push dword [esp + 0x64]
movzx esi, byte [eax + 1]
push dword [eax + 4]
push esi
push ebx
call fcn.004a0610
mov ecx, dword [esp + 0x6c]
push dword [ecx + 8]
push eax
push esi
push ebx
call fcn.004aa620
mov eax, dword [esp + 0x78]
add esp, 0x28
test eax, eax
jne 0x4c7c75
mov eax, dword [esp + 0x48]
push dword [esp + 0x5c]
push dword [eax + 0xc]
push edi
call fcn.004a1120
mov esi, dword [esp + 0x28]
add esp, 0xc
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
dec ecx
cmp ecx, 0xe
ja case.0x4c7c6e.4
jmp dword [ecx*4 + 0x4c82e4]
mov esi, dword [esp + 0x1c]
jmp 0x4c7c60
mov al, byte [ebx + 0x13]
test al, al
jne 0x4c7c8a
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x4c7c99
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0xa0]
push eax
push ebp
push esi
push 0x61
push edi
mov dword [esp + 0x58], eax
call fcn.004fdfe0
push ebp
push esi
mov esi, dword [esp + 0x60]
push esi
push dword [esp + 0x34]
push 0x8a
push edi
call fcn.004fe0c0
add esp, 0x2c
test esi, esi
je case.0x4c7c6e.4
mov al, byte [ebx + 0x13]
cmp al, 8
jae case.0x4c7c6e.4
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], esi
inc byte [ebx + 0x13]
jmp case.0x4c7c6e.4
push ebp
push esi
push dword [esp + 0x1c]
push 0x8c
push edi
call fcn.004fdfe0
add esp, 0x14
jmp case.0x4c7c6e.4
mov eax, dword [esp + 0x18]
inc eax
push eax
push ebx
call fcn.004e3d90
mov ecx, dword [edi + 0x6c]
mov edx, eax
mov eax, dword [esp + 0x20]
add esp, 8
add eax, edx
mov dword [esp + 0x58], edx
cmp dword [edi + 0x70], ecx
jg 0x4c7d36
push eax
push ebp
push esi
push 0x61
push edi
call fcn.004b0300
mov edx, dword [esp + 0x6c]
add esp, 0x14
jmp 0x4c7d67
mov ebx, dword [esp + 0x44]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x18]
add esi, edx
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [esp + 0x13], 5
jne 0x4c7da1
mov eax, dword [edi + 0x6c]
mov esi, dword [esp + 0x14]
add eax, 4
push 0
push edx
push eax
inc esi
push esi
push 0x1d
push edi
call fcn.004fe0c0
push ebp
push dword [esp + 0x38]
mov ebp, dword [esp + 0x78]
push ebp
push esi
push 0x8a
push edi
call fcn.004fe0c0
add esp, 0x30
jmp 0x4c7da5
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x50]
test esi, esi
je 0x4c7dcc
mov ecx, dword [esp + 0x18]
push ecx
push 1
push dword [esp + 0x28]
lea eax, [ecx + ebp]
push eax
push dword [esp + 0x58]
push esi
push ebx
call fcn.004c1380
add esp, 0x1c
jmp 0x4c7e45
mov al, byte [ebx + 0x13]
test al, al
jne 0x4c7ddb
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x4c7dea
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0xa0]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x58], eax
push 0x7f
push edi
call fcn.004fdf80
push dword [esp + 0x60]
push ebp
push dword [esp + 0x2c]
push 0x80
push edi
call fcn.004fdfe0
mov eax, dword [edi + 0x6c]
add esp, 0x24
test eax, eax
jle 0x4c7e29
lea ecx, [eax + eax*4]
mov edx, 8
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4c7e45
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x4c7e45
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], ecx
inc byte [ebx + 0x13]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 1
jne 0x4c7e74
test ebp, ebp
je 0x4c827c
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x4c827c
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], ebp
inc byte [ebx + 0x13]
jmp 0x4c827c
cmp eax, dword [ebx + 0x1c]
jle 0x4c827c
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], ebp
jmp 0x4c827c
test eax, eax
jne 0x4c7f69
mov ecx, dword [esp + 0x58]
push ebx
mov eax, dword [ecx + 8]
mov dword [esp + 0x54], eax
call fcn.004e3df0
push dword [esp + 0x64]
mov ebx, eax
push esi
push 0x32
push edi
call fcn.004fdf80
mov ecx, dword [esp + 0x64]
shr ecx, 0x1f
push ebx
sub ebp, ecx
push ebp
lea eax, [ecx + esi]
push eax
push 0x61
push edi
call fcn.004fdfe0
mov eax, dword [esp + 0x78]
add esp, 0x28
test eax, eax
jns 0x4c7eeb
push esi
push ebx
push dword [esp + 0x1c]
push 0x80
push edi
call fcn.004fdfe0
add esp, 0x14
jmp 0x4c8280
push eax
push esi
push ebx
push dword [esp + 0x20]
push 0x8a
push edi
call fcn.004fe0c0
add esp, 0x18
jmp 0x4c8280
test eax, eax
jne 0x4c7f69
push ebx
call fcn.004e3df0
mov ecx, dword [esp + 0x5c]
mov esi, eax
push ebp
push dword [ecx + 0x14]
push esi
push ebp
push dword [esp + 0x30]
push 0x61
push edi
call fcn.004fe040
push ebp
push dword [esp + 0x40]
push esi
push dword [esp + 0x40]
push 0x8a
push edi
call fcn.004fe0c0
push esi
push ebx
call fcn.004f25b0
add esp, 0x40
jmp 0x4c8280
push dword [esp + 0x14]
push 1
push 0x47
push edi
call fcn.004fdf80
add esp, 0x10
jmp case.0x4c7c6e.4
test eax, eax
je 0x4c8280
push dword [esp + 0x18]
push ebp
push dword [esp + 0x28]
push esi
mov esi, dword [esp + 0x58]
push esi
push eax
push ebx
call fcn.004c1380
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
test eax, eax
jne 0x4c7f69
cmp byte [esp + 0x13], 0xd
jne 0x4c7fac
mov ecx, dword [esp + 0x58]
push dword [ecx + 4]
push 0xc
push edi
call fcn.004fdf20
add esp, 0xc
jmp 0x4c8280
push ebp
push esi
push 0x54
push edi
call fcn.004fdf80
add esp, 0x10
jmp 0x4c8280
mov ecx, dword [esp + 0x58]
xor eax, eax
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x34], eax
mov ecx, dword [eax]
mov al, byte [ebx + 0x13]
mov dword [esp + 0x4c], ecx
test al, al
jne 0x4c7fe4
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
jmp 0x4c7ff3
dec al
mov byte [ebx + 0x13], al
movzx eax, al
mov eax, dword [ebx + eax*4 + 0xa0]
mov dword [esp + 0x24], eax
lea eax, [ecx + 2]
push eax
push ebx
call fcn.004e3d90
mov ecx, dword [esp + 0x54]
add esp, 8
inc ecx
mov dword [esp + 0x58], eax
add eax, ecx
cmp byte [esp + 0x13], 6
mov dword [esp + 0x28], eax
jne 0x4c8077
mov eax, dword [esp + 0x14]
push ebp
push esi
push 0
inc eax
push eax
push 0x1d
push edi
call fcn.004fe0c0
push dword [esp + 0x40]
mov dword [esp + 0x70], eax
push ebp
push esi
push 0x61
push edi
call fcn.004fdfe0
push dword [esp + 0x54]
mov eax, dword [esp + 0x44]
inc eax
push eax
push 0x8a
push edi
call fcn.004fdf80
mov eax, dword [edi + 0x6c]
add esp, 0x3c
test eax, eax
jle 0x4c8085
lea ecx, [eax + eax*4]
mov edx, 0x10
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
jmp 0x4c8085
push eax
push ebp
push esi
push 0x61
push edi
call fcn.004fdfe0
add esp, 0x14
mov ebp, dword [esp + 0x4c]
test ebp, ebp
jle 0x4c8103
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
add ebx, 0x18
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
movzx eax, word [ebx]
lea edx, [esi - 1]
mov ecx, dword [edi + 0x6c]
add edx, eax
cmp dword [edi + 0x70], ecx
jg 0x4c80c1
push 0
push ebp
push edx
push 0x51
push edi
call fcn.004b0300
add esp, 0x14
jmp 0x4c80f0
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x51
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebp
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
inc ebp
add ebx, 0x14
sub dword [esp + 0x28], 1
jne 0x4c80a0
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov ecx, dword [edi + 0x6c]
lea eax, [edx + ebp]
cmp dword [edi + 0x70], ecx
jg 0x4c812a
push 0
push eax
push dword [esp + 0x1c]
push 0x7e
push edi
call fcn.004b0300
mov edx, dword [esp + 0x6c]
add esp, 0x14
jmp 0x4c815c
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
lea esi, [edx + ebp]
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
lea eax, [ebp + 2]
cmp dword [edi + 0x70], ecx
jg 0x4c817f
mov esi, dword [esp + 0x24]
push esi
push eax
push edx
push 0x61
push edi
call fcn.004b0300
mov edx, dword [esp + 0x6c]
add esp, 0x14
jmp 0x4c81ad
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
lea esi, [ebp + 2]
mov dword [eax + ecx*4 + 8], esi
mov esi, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
lea eax, [ebp + 2]
cmp dword [edi + 0x70], ecx
jg 0x4c81d3
push eax
push edx
push esi
push dword [esp + 0x20]
push 0x8a
push edi
call fcn.00497760
mov edx, dword [esp + 0x70]
add esp, 0x18
jmp 0x4c8201
mov ebx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], ebx
lea ebx, [ebp + 2]
mov dword [eax + ecx*4 + 0x10], ebx
mov ebx, dword [esp + 0x44]
mov dword [eax + ecx*4], 0xfd8a
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x4c822f
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x44], eax
mov eax, dword [edi]
cmp byte [eax + 0x57], 0
je 0x4c821f
mov eax, 0x590c20
jmp 0x4c8228
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x44]
mov dword [eax + 8], ecx
test esi, esi
je 0x4c8247
mov al, byte [ebx + 0x13]
cmp al, 8
jae 0x4c8247
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], esi
inc byte [ebx + 0x13]
lea eax, [ebp + 2]
cmp eax, 1
jne 0x4c826d
test edx, edx
je case.0x4c7c6e.4
mov al, byte [ebx + 0x13]
mov esi, dword [esp + 0x50]
cmp al, 8
jae 0x4c827c
movzx eax, al
mov dword [ebx + eax*4 + 0xa0], edx
inc byte [ebx + 0x13]
jmp 0x4c827c
cmp eax, dword [ebx + 0x1c]
jle case.0x4c7c6e.4
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edx
mov esi, dword [esp + 0x50]
test esi, esi
jne 0x4c82dc
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 8]
test edx, edx
je 0x4c82dc
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4c82ad
push 0
push dword [esp + 0x64]
push edx
push 0x3d
push edi
call fcn.004b0300
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x60]
mov dword [eax + ecx*4], 0x3d
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret