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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], ecx
mov esi, dword [ecx + 8]
mov eax, dword [ecx]
mov dword [esp + 0x34], esi
mov dword [esp + 0x20], eax
call fcn.00490a20
movzx edi, byte [ebx + 0x2b]
dec edi
mov dword [esp + 0x2c], edi
js 0x4ca0bb
mov ecx, dword [esp + 0x30]
lea eax, [edi + edi*4]
shl eax, 4
add ecx, 0x38
add ecx, eax
add ebx, 0x2f4
add ebx, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
nop
mov edx, dword [esi + 0x18]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4c9b52
mov eax, dword [ebx + 4]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
mov al, byte [ebx + 0x19]
cmp al, 0xa0
je 0x4c9beb
mov ecx, dword [ebx + 0x1c]
movzx edi, byte [ebx + 0x1a]
mov edx, dword [ebx + 0x20]
movzx eax, al
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4c9b9a
push edi
push edx
push dword [esp + 0x30]
mov edx, dword [esp + 0x30]
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4c9bd3
mov ebx, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4], bl
mov ebx, dword [esp + 0x28]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x18]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edi
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
jne 0x4c9beb
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 4]
lea edx, [eax + eax*4]
mov al, byte [ebx + 0x1b]
mov byte [ecx + edx*4 - 0x11], al
mov eax, dword [esp + 0x10]
test dword [eax + 0x24], 0x800
je 0x4c9d26
cmp dword [ebx + 0x24], 0
jle 0x4c9d26
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4c9c21
mov eax, dword [ebx - 4]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
mov edx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x24], edx
lea edi, [edx - 1]
lea edi, [edi + edi*2]
lea edi, [eax + edi*4]
test edx, edx
jle 0x4c9d26
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov edx, dword [edi + 4]
inc edx
mov dword [eax + 0x60], ecx
mov ebx, dword [esi + 0x20]
jns 0x4c9c59
lea edx, [ebx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4c9c68
mov eax, 0x5a2a64
jmp 0x4c9c71
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], ebx
movzx eax, byte [edi + 8]
mov ecx, dword [esi + 0x20]
mov edx, dword [edi + 4]
mov ebx, dword [edi]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x38], edx
cmp dword [eax + 0x58], ecx
jg 0x4c9ca4
push 0
push edx
mov edx, dword [esp + 0x30]
mov ecx, esi
push ebx
call fcn.004791e0
add esp, 0xc
jmp 0x4c9cdd
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4], dl
mov edx, dword [esp + 0x38]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov edx, dword [edi + 4]
dec edx
mov dword [eax + 0x60], ecx
mov ebx, dword [esi + 0x20]
jns 0x4c9cf3
lea edx, [ebx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4c9d02
mov eax, 0x5a2a64
jmp 0x4c9d0b
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], ebx
sub edi, 0xc
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jg 0x4c9c43
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4c9d41
mov eax, dword [ebx - 8]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
mov edx, dword [ebx]
test edx, edx
je 0x4c9e09
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x4c9d73
push 0
push edx
push 0
mov edx, 0xd
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4c9da6
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov edx, dword [ebx]
mov dword [eax + 0x60], ecx
mov edi, dword [esi + 0x20]
test edx, edx
jns 0x4c9dbc
lea edx, [edi - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4c9dcb
mov eax, 0x5a2a64
jmp 0x4c9dd4
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edi
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov edx, dword [ebx]
sub edx, 2
mov dword [eax + 0x60], ecx
mov edi, dword [esi + 0x20]
jns 0x4c9dee
lea edx, [edi - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4c9dfd
mov eax, 0x5a2a64
jmp 0x4c9e06
mov eax, dword [esi + 4]
lea ecx, [edx + edx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edi
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x4c9e9e
lea ecx, [edi - 1]
test ecx, ecx
jns 0x4c9e1f
mov ecx, dword [esi + 0x20]
dec ecx
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4c9e2e
mov edx, 0x5a2a64
jmp 0x4c9e37
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
mov edx, dword [edx + 4]
mov eax, dword [ebx + 0x10]
neg edx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x28], eax
sbb edx, edx
mov eax, dword [esi + 0x18]
add edx, 0x8e
cmp dword [eax + 0x58], ecx
jg 0x4c9e69
push 0
push edi
push dword [esp + 0x30]
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4c9e9e
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4], dl
mov edx, dword [esp + 0x28]
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [ebx - 0x14]
test edx, edx
je 0x4ca09a
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0x20]
cmp dword [eax + 0x58], edi
jg 0x4c9ecc
push 0
push 0
push edx
mov edx, 0x8a
mov ecx, esi
call fcn.004791e0
add esp, 0xc
mov edi, eax
jmp 0x4c9eff
lea eax, [edi + 1]
mov dword [esi + 0x20], eax
lea ecx, [edi + edi*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x8a
mov byte [eax + ecx*4 + 3], 0
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 + 0x10]
test byte [eax + 0x24], 0x40
jne 0x4c9f67
mov eax, dword [esi + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx]
cmp dword [eax + 0x58], ecx
jg 0x4c9f30
push 0
push 0
push edx
mov edx, 0x68
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4c9f63
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x68
mov byte [eax + ecx*4 + 3], 0
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 + 0x10]
test dword [eax + 0x24], 0x200
je 0x4c9fc7
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov edx, dword [ebx - 0xc]
cmp dword [eax + 0x58], ecx
jg 0x4c9f94
push 0
push 0
push edx
mov edx, 0x68
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4c9fc7
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0x68
mov byte [eax + ecx*4 + 3], 0
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
cmp byte [ebx + 0x19], 0xf
mov edx, dword [ebx + 8]
mov ecx, dword [esi + 0x20]
jne 0x4ca01a
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x4c9ffa
push 0
push edx
push dword [esp + 0x30]
mov edx, 0xe
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4ca06b
mov ebx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x18]
mov word [eax + ecx*4], 0xe
jmp 0x4ca052
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x4ca038
push 0
push edx
push 0
mov edx, 0xd
mov ecx, esi
call fcn.004791e0
add esp, 0xc
jmp 0x4ca06b
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov word [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], edx
mov byte [eax + ecx*4 + 3], 0
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov edx, dword [esi + 0x20]
test edi, edi
jns 0x4ca07f
lea edi, [edx - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4ca08e
mov eax, 0x5a2a64
jmp 0x4ca097
mov eax, dword [esi + 4]
lea ecx, [edi + edi*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov edi, dword [esp + 0x2c]
sub ebx, 0x50
sub dword [esp + 0x1c], 0x50
dec edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], ebx
test edi, edi
jns 0x4c9b30
mov ebx, dword [esp + 0x14]
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x4ca0d6
mov eax, dword [ebx + 0x34]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
dec eax
mov dword [edx + 0x60], eax
xor edx, edx
mov dword [esp + 0x10], edx
cmp byte [ebx + 0x2b], dl
jbe 0x4ca331
add ebx, 0x320
mov dword [esp + 0x18], ebx
movzx eax, byte [ebx - 0x14]
mov edi, dword [ebx]
lea eax, [eax + eax*4]
shl eax, 4
add eax, dword [esp + 0x30]
test byte [eax + 0x30], 0x10
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x24], ecx
je 0x4ca13b
mov esi, dword [esp + 0x20]
cmp byte [esi + 0x45], 0
mov esi, dword [esp + 0x34]
jne 0x4ca13b
mov edx, dword [ebx - 0x20]
mov ecx, esi
push 0
push dword [eax + 0x28]
push dword [ebx - 0x3c]
call fcn.004c4810
add esp, 0xc
jmp 0x4ca30d
test byte [ecx + 0x2a], 2
jne 0x4ca209
cmp dword [ecx + 0xc], 0
jne 0x4ca209
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x24], 0x10
jne 0x4ca209
cmp byte [ecx + 0x28], 0
mov edx, dword [edi + 0x24]
mov dword [esp + 0x38], edx
jne 0x4ca1dd
test dl, 0x40
jne 0x4ca1dd
mov eax, dword [eax + 0x38]
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x4ca19e
push 0
push 0
push dword [esp + 0x34]
mov edx, 0x3d
mov ecx, esi
call fcn.004791e0
mov edx, dword [esp + 0x44]
add esp, 0xc
jmp 0x4ca1d9
mov ebx, dword [esp + 0x2c]
lea eax, [ecx + 1]
mov dword [esi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [esp + 0x18]
mov word [eax + ecx*4], 0x3d
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x14]
test edx, 0x200
je 0x4ca205
test edx, 0x4100
jne 0x4ca205
mov eax, dword [ebx - 0x38]
cmp eax, dword [ecx + 0x40]
je 0x4ca205
push eax
mov edx, 0x3d
mov ecx, esi
call fcn.00479300
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 0x24]
test eax, 0x240
je 0x4ca218
mov eax, dword [edi + 0x1c]
jmp 0x4ca226
test eax, 0x2000
je 0x4ca311
mov eax, dword [ebx - 8]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4ca311
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x28], 0
je 0x4ca249
mov eax, dword [eax + 0xc]
test byte [eax + 0x2a], 0x20
je 0x4ca311
mov eax, dword [esp + 0x20]
cmp byte [eax + 0x45], 0
jne 0x4ca311
mov edi, dword [ebx - 0x20]
mov ecx, edi
mov eax, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
test edi, edi
jns 0x4ca26a
lea ecx, [eax - 1]
mov eax, dword [esi]
cmp byte [eax + 0x45], 0
je 0x4ca279
mov edx, 0x5a2a64
jmp 0x4ca282
mov eax, dword [esi + 4]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*4]
cmp edi, dword [esp + 0x2c]
jge 0x4ca30d
mov esi, dword [esp + 0x2c]
add edx, 4
sub esi, edi
mov eax, dword [edx]
cmp eax, dword [ebx - 0x3c]
jne 0x4ca303
mov al, byte [edx - 4]
cmp al, 0x2f
jne 0x4ca2f6
mov eax, dword [esp + 0x24]
mov edi, dword [edx + 4]
test byte [eax + 0x2a], 0x20
je 0x4ca2be
mov ecx, eax
call fcn.00497c60
mov eax, dword [eax + 4]
movsx edi, word [eax + edi*2]
mov ecx, dword [esp + 0x28]
xor eax, eax
movzx ebx, word [ecx + 0x34]
test ebx, ebx
jle 0x4ca2dd
mov ecx, dword [ecx + 4]
nop
cmp di, word [ecx]
je 0x4ca2f1
inc eax
add ecx, 2
cmp eax, ebx
jl 0x4ca2d0
or eax, 0xffffffff
mov ebx, dword [esp + 0x18]
cwde
test eax, eax
js 0x4ca303
mov dword [edx + 4], eax
mov eax, dword [ebx - 0x38]
jmp 0x4ca301
movzx eax, ax
jmp 0x4ca2e0
cmp al, 0x67
jne 0x4ca303
mov eax, dword [ebx - 0x38]
mov byte [edx - 4], 0x71
mov dword [edx], eax
add edx, 0x14
dec esi
jne 0x4ca295
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edx
add ebx, 0x50
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
movzx eax, byte [eax + 0x2b]
cmp edx, eax
jl 0x4ca0f6
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x3c]
mov edx, ebx
mov eax, dword [ebx + 0x38]
mov dword [ecx + 0x1ac], eax
mov ecx, dword [esp + 0x20]
call fcn.004c5c00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret