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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], ecx
test edx, edx
je 0x4a1274
mov ebp, eax
mov eax, dword [esp + 0xb4]
cmp eax, dword [ebp + 0x110]
jg 0x4a1274
lea edx, [esp + 0x58]
mov dword [esp + 0x24], edx
jmp 0x4a0f81
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x14]
test ah, 0x80
jne 0x4a1230
inc dword [esp + 0xb4]
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x34], edx
test edx, edx
je 0x4a1274
mov eax, dword [esp + 0xb4]
cmp dword [ebp + 0x110], eax
jl 0x4a1274
mov eax, dword [ebp + 0x10c]
cmp eax, dword [esp + 0xb4]
jg 0x4a0f44
mov edx, dword [ebp + 0xd8]
mov ebx, dword [ebp + 0x28]
mov ecx, dword [esp + 0x34]
or ebx, dword [ecx + 0x14]
mov esi, dword [ecx + 8]
test esi, esi
je 0x4a1318
cmp dword [esp + 0x34], edx
je 0x4a0fb4
and ebx, 0xfffffffb
mov edx, dword [ebp + 0x5c]
mov dword [esp + 0x2c], edx
mov ecx, dword [ebp + 0x178]
mov edx, dword [ebp + 0xf8]
sub ecx, edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xb4]
sub ecx, eax
mov eax, dword [esp + 0x2c]
imul eax, ecx
mov edx, dword [ebp + 0x17c]
add eax, edx
mov dword [esp + 0x3c], eax
test byte [esp + 0xb4], 1
je 0x4a0ff6
or ebx, 0x40
lea ecx, [esp + 0x78]
mov edx, dword [esp + 0x34]
mov eax, ebp
call fcn.004a0a30
mov eax, dword [ebp + 0x15c]
and eax, 1
xor eax, 1
mov edx, dword [ebp + 0x164]
cmp eax, edx
jge 0x4a132d
mov ecx, dword [ebp + 0x160]
lea eax, [ecx + eax*4]
lea esi, [ecx + edx*4]
xor edx, edx
lea esi, [esi]
mov ecx, dword [eax]
add edx, dword [ecx]
add eax, 4
cmp eax, esi
jne 0x4a1030
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.004cdc48
mov eax, dword [ebp + 0x54]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov ecx, 4
mov edi, esp
mov esi, dword [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x78]
call fcn.004a0eb0
test byte [ebp + 0x15c], 1
jne 0x4a1288
mov edx, dword [ebp + 0x4c]
mov dword [esp + 0x48], edx
mov edx, dword [ebp + 0xd8]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0x28]
or ecx, eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x34]
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x4a1320
cmp dword [esp + 0x34], edx
je 0x4a10ca
and dword [esp + 0x40], 0xfffffffb
mov edx, dword [ebp + 0x5c]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4a0f4b
lea eax, [esp + 0x54]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], 0
mov eax, dword [0x68bb7c]
call dword [eax + 0xbc]
mov ebx, dword [ebp + 0x158]
test ebx, ebx
jle 0x4a1153
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov edx, dword [ebp + 0xd4]
xor eax, eax
jmp 0x4a1142
mov ecx, dword [edi + eax*4]
mov dword [edx + 0x2c], ecx
inc eax
add edx, 0x30
cmp eax, ebx
je 0x4a1153
cmp eax, esi
jl 0x4a1134
xor ecx, ecx
mov dword [edx + 0x2c], ecx
inc eax
add edx, 0x30
cmp eax, ebx
jne 0x4a1142
cmp dword [ebp + 0x164], 1
jle 0x4a0f44
mov dword [esp + 0x2c], 1
lea eax, [esp + 0x68]
mov dword [esp + 0x28], eax
lea edx, [esp + 4]
mov dword [esp + 0x38], edx
mov eax, dword [ebp + 0x160]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [eax + ecx*4]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
lea eax, [esp + 0x68]
mov dword [esp], eax
call fcn.004cdc48
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 4
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x58]
mov dword [esp], edx
call fcn.004cde04
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov edi, esp
mov esi, dword [esp + 0x24]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x78]
mov eax, dword [esp + 0x48]
call fcn.004a0eb0
mov eax, dword [ebx]
add dword [esp + 0x30], eax
inc dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
cmp edx, dword [ebp + 0x164]
jl 0x4a1178
jmp 0x4a0f44
mov eax, dword [esp + 0xb4]
inc eax
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb0]
inc eax
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov eax, ebp
call fcn.004a0f08
mov dword [esp + 0xb4], eax
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x34], edx
test edx, edx
jne 0x4a0f6e
nop
mov eax, dword [esp + 0xb4]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xb0]
imul eax, dword [ebp + 0x60]
mov edx, dword [ebp + 0xa4]
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
sub edx, eax
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
add eax, dword [esp + 0x30]
mov dword [esp + 4], eax
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.004cdc48
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x18]
test eax, eax
je 0x4a12d6
mov dword [esp + 0x78], eax
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x1c]
test eax, eax
je 0x4a12e5
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x48]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], ecx
mov ecx, 4
mov edi, esp
mov esi, dword [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x78]
call fcn.004a0eb0
mov eax, dword [esp + 0x38]
add dword [esp + 0x30], eax
jmp 0x4a1093
or bh, 0x40
jmp 0x4a0fab
or dword [esp + 0x40], 0x4000
jmp 0x4a10bf
xor edx, edx
jmp 0x4a103b