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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x34], ebx
push edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x10], ebx
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x48], eax
cmp dword [ebp + 8], ebx
jne 0x4ca2f9
push 7
pop eax
jmp 0x4ca53a
movzx edi, word [esi + 0x10]
movzx ecx, byte [esi + 1]
add edi, ecx
cmp edi, 2
jae 0x4ca317
mov edx, ebx
lea eax, [edi + 1]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
jmp 0x4ca33c
mov dword [esp + 0x1c], 3
test edx, edx
jne 0x4ca32b
mov edx, ebx
mov dword [esp + 0x28], ebx
jmp 0x4ca339
cmp edx, edi
jne 0x4ca334
lea edx, [edi - 2]
jmp 0x4ca335
dec edx
mov dword [esp + 0x28], edx
push 2
pop edi
movzx eax, word [esi + 0x10]
sub edx, ecx
mov ecx, dword [esi + 0x40]
add edx, edi
cmp edx, eax
jne 0x4ca356
movzx eax, byte [esi + 5]
lea edx, [ecx + 8]
add edx, eax
jmp 0x4ca379
movzx eax, word [esi + 0xc]
add eax, ecx
movzx ecx, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
mov edx, ecx
shl eax, 8
or edx, eax
mov dword [esp + 0x2c], ecx
movzx eax, word [esi + 0x12]
and edx, eax
add edx, dword [esi + 0x40]
mov ecx, edx
mov dword [esp + 0x2c], edx
call fcn.004d283f
mov ecx, eax
lea eax, [esp + 0x80]
mov dword [esp + 0x20], ecx
lea eax, [eax + edi*4]
mov edx, ecx
jmp 0x4ca4b0
mov eax, dword [esp + 0x30]
mov edx, edi
mov dword [esp + 0x34], edx
mov eax, dword [eax]
movzx ecx, word [eax + 0x10]
movzx eax, byte [eax + 1]
inc ecx
add eax, dword [esp + 0x10]
add ecx, eax
mov eax, edi
dec edi
mov dword [esp + 0x10], ecx
test eax, eax
je 0x4ca541
mov ecx, dword [esp + 0x28]
movzx eax, word [esi + 0x18]
add ecx, edi
cmp ecx, eax
jne 0x4ca414
cmp byte [esi + 1], bl
je 0x4ca414
mov esi, dword [esi + 0x14]
mov eax, edi
shl eax, 2
mov ecx, esi
mov dword [esp + 0x18], eax
mov dword [esp + eax + 0x90], esi
call fcn.004d283f
mov edx, esi
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.004cd35a
mov ecx, edi
movzx eax, ax
mov byte [esi + 1], bl
mov dword [esp + ecx*4 + 0x60], eax
jmp 0x4ca49f
mov ecx, dword [esp + 0x4c]
mov esi, dword [esi + 0x40]
movzx eax, byte [ecx + 1]
sub edx, eax
movzx eax, word [ecx + 0xc]
add edx, dword [esp + 0x28]
add eax, esi
movzx ecx, byte [eax + edx*2 - 1]
movzx eax, byte [eax + edx*2 - 2]
shl eax, 8
or ecx, eax
mov eax, dword [esp + 0x4c]
movzx eax, word [eax + 0x12]
and ecx, eax
mov eax, dword [esp + 0x34]
add esi, ecx
mov ecx, esi
lea eax, [eax*4 - 4]
mov dword [esp + 0x18], eax
mov dword [esp + eax + 0x90], esi
call fcn.004d283f
mov edx, esi
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x4c]
mov ecx, esi
call fcn.004cd35a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
movzx eax, ax
dec edx
mov dword [esp + ecx + 0x60], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
push eax
movzx eax, byte [esi + 1]
sub ecx, eax
add edx, ecx
mov ecx, esi
call fcn.004caf1f
pop ecx
pop ecx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x80]
mov edx, dword [esp + 0x20]
add eax, ecx
mov ecx, dword [esp + 0x48]
push eax
mov dword [esp + 0x34], eax
call fcn.004ccc04
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
pop ecx
test eax, eax
je 0x4ca39b
lea eax, [edi*4 + 4]
push eax
lea eax, [esp + 0x84]
push ebx
push eax
call fcn.00438880
mov edi, dword [esp + 0x24]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
call fcn.004d4dc2
mov eax, dword [esp + 0x1c]
mov esi, ebx
test eax, eax
je 0x4ca51b
mov ecx, dword [esp + esi*4 + 0x80]
test ecx, ecx
je 0x4ca516
mov ecx, dword [ecx + 0x44]
call fcn.004ce14b
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x4ca4ff
mov esi, dword [esp + 0x40]
test esi, esi
jle 0x4ca538
mov ecx, dword [esp + ebx*4 + 0x60]
test ecx, ecx
je 0x4ca533
mov ecx, dword [ecx + 0x44]
call fcn.004ce14b
inc ebx
cmp ebx, esi
jl 0x4ca523
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x48]
lea esi, [ecx + 3]
and esi, 0xfffffffc
imul ecx, esi, 6
movzx edx, word [eax + 0x12]
lea eax, [edx + 0x50]
mov dword [esp + 0x5c], eax
imul eax, dword [esp + 0x1c]
add eax, edx
add ecx, eax
call fcn.004d4e81
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
jne 0x4ca579
push 7
pop edi
jmp 0x4ca4ec
mov ecx, dword [esp + 0x80]
lea eax, [edi + esi*4]
lea edx, [eax + esi*2]
mov dword [esp + 0x24], eax
mov dword [esp + 0x54], edx
mov edi, ebx
mov dword [esp + 0x34], ebx
movzx eax, byte [ecx + 3]
shl ax, 2
movzx eax, ax
mov dword [esp + 0x58], eax
mov al, byte [ecx + 4]
mov byte [esp + 0xf], al
movzx eax, al
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x8c], 4
test eax, eax
je 0x4ca71c
dec eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x7c], eax
mov ecx, ebx
mov eax, dword [esp + 0x48]
push 0x13
movzx eax, word [eax + 0x12]
add eax, ecx
add eax, edx
mov edx, dword [esp + edi*4 + 0x84]
mov dword [esp + edi*4 + 0xb0], eax
mov esi, edx
pop ecx
mov edi, eax
mov dword [esp + 0x10], eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 0x4c]
mov dword [eax + 0x40], ecx
mov eax, dword [esp + 0x48]
movzx eax, word [eax + 0x12]
push eax
push dword [edx + 0x40]
push ecx
call fcn.00437d90
mov esi, dword [esp + 0x1c]
add esp, 0xc
mov edi, ebx
movzx ecx, word [esi + 0x10]
movzx eax, byte [esi + 1]
add eax, ecx
mov dword [esp + 0x78], eax
je 0x4ca660
mov ebx, dword [esp + 0x38]
mov edx, edi
mov ecx, esi
call fcn.004cd55a
mov ecx, dword [esp + 0x3c]
mov edx, eax
mov dword [ecx + ebx*4], eax
mov ecx, esi
call fcn.004cd35a
mov edx, dword [esp + 0x24]
mov word [edx + ebx*2], ax
inc ebx
inc edi
cmp edi, dword [esp + 0x78]
jl 0x4ca62f
mov dword [esp + 0x38], ebx
xor ebx, ebx
jmp 0x4ca664
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
cmp edi, dword [esp + 0x7c]
jge 0x4ca6fd
cmp byte [esp + 0xf], 0
jne 0x4ca6fd
movzx eax, word [esp + edi*4 + 0x60]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x54]
push eax
push dword [esp + edi*4 + 0x94]
mov word [edx + ecx*2], ax
mov edx, dword [esp + 0x58]
add esi, edx
add edx, eax
push esi
mov dword [esp + 0x5c], edx
call fcn.00437d90
mov ecx, dword [esp + 0x64]
add esp, 0xc
mov edx, dword [esp + 0x38]
movzx eax, cx
add eax, esi
mov esi, dword [esp + 0x3c]
mov dword [esi + edx*4], eax
mov esi, dword [esp + 0x24]
mov ax, word [esi + edx*2]
sub ax, cx
mov word [esi + edx*2], ax
movzx ecx, ax
mov eax, dword [esp + 0x10]
cmp byte [eax + 3], 0
jne 0x4ca6ec
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax + 0x40]
mov ecx, dword [ecx + edx*4]
mov eax, dword [eax + 8]
mov dword [ecx], eax
jmp 0x4ca6f8
push 4
pop eax
cmp cx, ax
jae 0x4ca6f8
mov word [esi + edx*2], ax
inc edx
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x30]
inc edi
add ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ecx
cmp edi, dword [esp + 0x1c]
jl 0x4ca5d3
mov eax, dword [esp + 0x58]
mov edx, ebx
movzx ecx, ax
mov esi, ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], ecx
lea edi, [ecx - 0xc]
mov ecx, ebx
movzx eax, word [eax + 0x14]
add edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x4ca784
mov eax, dword [esp + 0x24]
add esi, 2
movzx eax, word [eax + edx*2]
add esi, eax
cmp esi, edi
jle 0x4ca77b
sub esi, eax
mov dword [esp + ecx*4 + 0x98], edx
mov dword [esp + ecx*4 + 0x60], esi
mov esi, ebx
push 4
inc ecx
pop eax
cmp ecx, eax
jg 0x4ca818
cmp byte [esp + 0xf], 0
lea eax, [edx - 1]
cmove eax, edx
mov edx, eax
mov eax, dword [esp + 0x38]
inc edx
cmp edx, eax
jl 0x4ca742
mov edx, ecx
mov dword [esp + ecx*4 + 0x60], esi
mov dword [esp + ecx*4 + 0x98], eax
inc ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x10], ecx
test edx, edx
jle 0x4ca836
mov ebx, dword [esp + edx*4 + 0x5c]
mov edi, dword [esp + edx*4 + 0x60]
mov ecx, dword [esp + edx*4 + 0x94]
mov dword [esp + 0x34], ebx
lea eax, [ecx - 1]
mov dword [esp + 0x30], ecx
mov esi, eax
sub esi, dword [esp + 0x44]
inc esi
test edi, edi
je 0x4ca7eb
mov ecx, dword [esp + 0x24]
movzx eax, word [ecx + eax*2]
mov ecx, ebx
sub ecx, eax
mov eax, dword [esp + 0x24]
sub ecx, 2
movzx eax, word [eax + esi*2]
add eax, 2
add eax, edi
cmp eax, ecx
jg 0x4ca81f
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
push 0xfffffffffffffffe
movzx eax, word [ebx + esi*2]
add eax, 2
add edi, eax
movzx eax, word [ebx + ecx*2 - 2]
pop ecx
sub ecx, eax
add dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
dec ecx
mov dword [esp + edx*4 + 0x94], ecx
jmp 0x4ca7b5
push 0xb
jmp 0x4ca573
mov dword [esp + edx*4 + 0x60], edi
mov dword [esp + edx*4 + 0x5c], ebx
dec edx
test edx, edx
jg 0x4ca7a2
mov ecx, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [esp + 0x80]
cmp dword [eax + 0x48], 1
jbe 0x4ca818
mov eax, dword [eax + 0x40]
mov esi, ebx
movzx eax, byte [eax]
mov dword [esp + 0x50], eax
test ecx, ecx
jle 0x4ca8ce
cmp esi, dword [esp + 0x1c]
jge 0x4ca88f
mov ecx, dword [esp + esi*4 + 0x80]
mov dword [esp + esi*4 + 0x60], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + esi*4 + 0x80], ebx
mov ecx, dword [ecx + 0x44]
call fcn.004cdc4d
inc dword [esp + 0x40]
mov edi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4ca4ec
jmp 0x4ca8c7
push ecx
push dword [esp + 0x24]
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x28]
push eax
lea edx, [esp + 0x50]
call fcn.004cb4a6
mov edi, eax
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4ca4ec
mov eax, dword [esp + 0x44]
inc dword [esp + 0x40]
mov dword [esp + esi*4 + 0x60], eax
inc esi
cmp esi, dword [esp + 0x10]
jl 0x4ca853
cmp esi, dword [esp + 0x1c]
jge 0x4ca917
mov ecx, dword [esp + esi*4 + 0x80]
lea edx, [esp + 0x14]
call fcn.004cb2de
mov edi, dword [esp + 0x14]
mov dword [esp + 0x18], edi
test edi, edi
jne 0x4ca4ec
mov ecx, dword [esp + esi*4 + 0x80]
test ecx, ecx
je 0x4ca907
mov ecx, dword [ecx + 0x44]
call fcn.004ce14b
mov dword [esp + esi*4 + 0x80], ebx
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x4ca8d4
jmp 0x4ca91b
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x54], 0
mov esi, ebx
mov dword [esp + 0x58], esi
jle 0x4ca998
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + esi*4 + 0x60]
mov ecx, esi
mov dword [esp + 0x7c], eax
mov edi, dword [eax + 0x48]
lea eax, [esi + 1]
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], eax
cmp eax, ebx
jge 0x4ca986
mov esi, eax
mov eax, dword [esp + esi*4 + 0x60]
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x5c], esi
cmp dword [eax + 0x48], edi
cmovb edi, dword [eax + 0x48]
cmp dword [eax + 0x48], ecx
mov ecx, esi
inc esi
cmovae ecx, edx
cmp esi, ebx
jl 0x4ca94a
mov esi, dword [esp + 0x58]
cmp ecx, esi
jle 0x4ca982
mov eax, dword [esp + ecx*4 + 0x60]
mov dword [esp + esi*4 + 0x60], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + ecx*4 + 0x60], eax
mov eax, dword [esp + 0x44]
mov esi, eax
mov dword [esp + 0x58], eax
cmp esi, dword [esp + 0x54]
jl 0x4ca92c
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + esi*4 + 0x5c]
mov edx, dword [eax + 0x48]
call fcn.004d2824
mov edx, dword [esp + 0x40]
mov esi, ebx
mov dword [esp + 0x20], ebx
mov eax, ebx
test edx, edx
jle 0x4caaf8
mov eax, dword [esp + eax*4 + 0x60]
mov ecx, eax
mov edx, dword [esp + 0x50]
mov dword [esp + 0x2c], eax
call fcn.004cccdd
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
lea eax, [eax + esi*2]
mov edx, dword [esp + ecx*4 + 0x98]
mov ecx, dword [esp + ecx*4 + 0x60]
sub edx, esi
push eax
mov eax, dword [esp + 0x40]
lea eax, [eax + esi*4]
push eax
call fcn.004cad08
mov eax, dword [esp + 0x28]
pop ecx
pop ecx
mov esi, dword [esp + eax*4 + 0x98]
cmp esi, dword [esp + 0x38]
jge 0x4caae7
mov eax, dword [esp + 0x3c]
push 0
pop ebx
mov edi, dword [eax + esi*4]
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + esi*2]
mov eax, dword [esp + 0x74]
mov edx, ecx
add eax, dword [ebp + 8]
add edx, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
cmp byte [eax + 3], 0
jne 0x4caa47
mov ecx, dword [eax + 0x40]
mov eax, dword [edi]
mov dword [ecx + 8], eax
jmp 0x4caaac
cmp byte [esp + 0xf], 0
je 0x4caa91
lea ecx, [esp + 0xb8]
dec esi
push ecx
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + esi*4]
mov ecx, eax
call fcn.004cd440
mov eax, dword [esp + 0x14]
mov edi, eax
pop ecx
push dword [esp + 0xc4]
push dword [esp + 0xc4]
lea ecx, [eax + 4]
call fcn.004d2a6c
pop ecx
pop ecx
mov edx, eax
mov dword [esp + 0x10], ebx
push 4
pop eax
add edx, eax
jmp 0x4caaac
sub edi, 4
cmp cx, word [esp + 0x8c]
jne 0x4caab0
mov ecx, dword [esp + 0x4c]
mov edx, edi
call fcn.004cd35a
movzx edx, ax
mov eax, dword [esp + 0x2c]
add dword [esp + 0x74], edx
lea ecx, [esp + 0x14]
push ecx
push dword [eax + 0x48]
mov ecx, dword [esp + 0x54]
push dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x38]
push edi
call fcn.004cadb8
mov edi, dword [esp + 0x28]
add esp, 0x14
test edi, edi
jne 0x4ca4ec
mov eax, dword [esp + 0x20]
inc esi
inc dword [esp + 0x28]
mov edx, dword [esp + 0x40]
inc eax
mov dword [esp + 0x20], eax
cmp eax, edx
jl 0x4ca9c0
test byte [esp + 0x50], 8
jne 0x4cab1a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + edx*4 + 0x5c]
mov eax, dword [esp + eax*4 + 0xa8]
mov ecx, dword [ecx + 0x40]
mov eax, dword [eax + 0x40]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
cmp dword [ebp + 0xc], 0
je 0x4ca4ec
mov ecx, dword [esp + 0x4c]
cmp word [ecx + 0x10], bx
jne 0x4ca4ec
mov esi, dword [esp + 0x60]
movzx eax, byte [ecx + 5]
cmp ax, word [esi + 0xe]
ja 0x4ca4ec
lea eax, [esp + 0x14]
mov edx, ecx
push eax
mov ecx, esi
call fcn.004cab67
pop ecx
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.004cb2de
mov edi, dword [esp + 0x14]
jmp 0x4ca4ec