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

Disassembly:
push 0xffffffffffffffff
push 0x586f86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebp
mov ebp, dword [esp + 0x54]
push esi
push edi
mov edi, ecx
push 5
push edi
call fcn.004a1050
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], ecx
push 1
push edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], ecx
call fcn.004a1050
add esp, 0x10
test eax, eax
je 0x4a0967
mov edi, edi
push 8
push edi
call fcn.004a0ff0
push 1
push edi
call fcn.004a1050
add esp, 0x10
test eax, eax
jne 0x4a0950
and ebp, 0xff
dec ebp
imul ebp, dword [ebx + 0x14c]
push edi
dec ebp
call fcn.004a5370
mov edx, dword [ebx + 0x150]
imul edx, dword [ebx + 0x14c]
add ebp, eax
add esp, 4
dec edx
cmp ebp, edx
mov dword [esp + 0x1c], ebp
jg 0x4a0e2d
cmp ebp, esi
jl 0x4a0e2d
mov eax, dword [ebx + 0x15c]
shl ebp, 5
add ebp, eax
mov edi, edi
push ebx
push edi
call fcn.004a54b0
mov cl, byte [esp + 0x1c]
mov byte [ebp], al
mov byte [ebp + 3], cl
mov ecx, dword [ebx + 0x18]
mov edx, ecx
shr edx, 6
and edx, eax
and edx, 1
add esp, 8
test al, 0xc
mov dword [esp + 0x18], edx
je 0x4a0a12
mov edx, ecx
and edx, 0xc
cmp dl, 0xc
jne 0x4a09ee
test cl, 0x20
je 0x4a09ee
mov byte [ebp + 1], 2
jmp 0x4a09fc
push 2
push edi
call fcn.004a1050
add esp, 8
mov byte [ebp + 1], al
mov eax, dword [ebx + 0x158]
mov ecx, dword [ebx + 0x164]
shl eax, 5
add eax, ecx
mov dword [ebp + 0xc], eax
jmp 0x4a0a38
cmp edx, esi
je 0x4a0a3e
and ecx, 0xc
cmp cl, 0xc
sete cl
inc cl
mov byte [ebp + 1], cl
mov edx, dword [ebx + 0x158]
mov ecx, dword [ebx + 0x164]
shl edx, 5
add edx, ecx
mov dword [ebp + 0xc], edx
inc dword [ebx + 0x158]
test byte [ebp], 3
je 0x4a0a63
mov eax, dword [ebx + 0x18]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x4a0a63
test al, 0x20
jne 0x4a0a63
push 1
push edi
call fcn.004a1050
add esp, 8
mov byte [ebp + 2], al
test byte [ebp], 0x10
je 0x4a0a83
push 5
push edi
call fcn.004a1050
mov dword [esp + 0x1c], eax
mov byte [ebp + 3], al
mov al, byte [ebp]
add esp, 8
and al, 0xef
mov byte [ebp], al
mov edx, dword [ebx + 0x18]
mov al, byte [ebp + 1]
and edx, 0xc
xor ecx, ecx
cmp dl, 0xc
jne 0x4a0ab0
cmp al, 2
setne cl
xor edx, edx
cmp al, 1
sete dl
mov esi, ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0xc], esi
inc edx
mov dword [esp + 0x10], edx
jmp 0x4a0aca
cmp al, 2
sete cl
mov dword [esp + 0x5c], 1
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x5c]
inc ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4a0ad8
test byte [ebp], 8
je 0x4a0b2b
cmp al, 3
jne 0x4a0ae1
lea eax, [ebp + 8]
jmp 0x4a0ae3
xor eax, eax
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebp
push esi
push edx
push ecx
push eax
lea edx, [esp + 0x40]
push edx
push ebx
xor esi, esi
call fcn.004a07a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x78]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x58]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x5c]
add esp, 0x1c
mov dword [eax + 0x14], ecx
test byte [ebp], 4
je 0x4a0b7a
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push ebp
push esi
push edx
push eax
push 0
lea ecx, [esp + 0x40]
push ecx
push ebx
mov esi, 1
call fcn.004a07a0
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x50]
mov dword [edx + 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x54]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x60]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [esp + 0x64]
add esp, 0x1c
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a0b8d
push 1
push edi
call fcn.004a0ff0
add esp, 8
test byte [ebp], 2
je 0x4a0bde
push edi
call fcn.004a5590
mov dword [ebp + 0x10], eax
mov eax, dword [edi + 0xa0]
shr eax, 9
and eax, 3
add esp, 4
sub eax, 2
je 0x4a0bc8
dec eax
jne 0x4a0bde
push 6
push edi
call fcn.004a1050
mov ecx, dword [ebp + 0x10]
shl ecx, 6
add esp, 8
or eax, ecx
jmp 0x4a0bdb
push 2
push edi
call fcn.004a1050
mov edx, dword [ebp + 0x10]
shl edx, 2
add esp, 8
or eax, edx
mov dword [ebp + 0x10], eax
mov al, byte [ebp]
test al, 1
je 0x4a0c55
mov eax, dword [ebx + 0x154]
mov ecx, dword [ebx + 0x160]
lea edx, [ecx + eax*4]
mov dword [ebp + 0x1c], edx
test byte [ebx + 0x18], 0x40
jne 0x4a0c1f
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
test dword [edi + 0xa0], 0x80000
je 0x4a0c40
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebx
push edi
call fcn.004a5900
add esp, 0x10
jmp 0x4a0ce1
lea edx, [esp + 0x20]
push edx
push ebp
push ebx
push edi
call fcn.004a5c40
add esp, 0x10
jmp 0x4a0ce1
mov ecx, dword [ebx]
and ecx, 0x1c00
cmp ecx, 0x800
jne 0x4a0c9e
test al, 8
jne 0x4a0c9e
mov eax, dword [ebx + 0x18]
shr eax, 2
xor esi, esi
mov edx, eax
and edx, 3
cmp dl, 3
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
jne 0x4a0c91
mov byte [ebp + 1], 2
jmp 0x4a0ca0
and al, 3
dec al
mov byte [ebp + 4], al
mov byte [ebp + 1], 1
jmp 0x4a0ca0
xor esi, esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
cmp dword [ebp + 0x10], esi
je 0x4a0cf2
mov eax, dword [ebx + 0x154]
mov ecx, dword [ebx + 0x160]
lea edx, [ecx + eax*4]
push ebp
mov dword [ebp + 0x1c], edx
test dword [edi + 0xa0], 0x80000
push ebx
push edi
je 0x4a0cd9
call fcn.004a5ac0
jmp 0x4a0cde
call fcn.004a5f60
add esp, 0xc
mov ecx, dword [ebx + 0x154]
mov eax, dword [ebp + 0x18]
add ecx, eax
mov dword [ebx + 0x154], ecx
mov ecx, dword [ebx]
and ecx, 0x1c00
cmp ecx, 0x1000
jne 0x4a0d0d
push 1
push edi
call fcn.004a0ff0
add esp, 8
push 0x17
push edi
call fcn.004a0fa0
add esp, 8
test eax, eax
je 0x4a0e6e
push edi
call fcn.004a5370
mov edx, dword [ebx + 0x150]
imul edx, dword [ebx + 0x14c]
mov ecx, dword [esp + 0x20]
mov esi, eax
add esp, 4
lea eax, [esi + ecx]
dec edx
cmp eax, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x5c], eax
jg 0x4a0de8
inc ecx
cmp eax, ecx
jl 0x4a0de8
cmp esi, 1
jle 0x4a0dd8
mov eax, dword [ebx]
and eax, 0x1c00
cmp eax, 0x800
jne 0x4a0d80
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
jmp 0x4a0d82
xor eax, eax
mov ecx, dword [ebx + 0x18]
shr ecx, 2
and ecx, 3
xor edx, edx
dec ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
je 0x4a0db2
dec ecx
je 0x4a0da9
dec ecx
jne 0x4a0db9
mov edx, 2
jmp 0x4a0db7
mov eax, 1
mov edx, eax
jmp 0x4a0db9
mov edx, 1
xor eax, eax
cmp esi, 1
jle 0x4a0dd4
lea ecx, [ebp + 0x24]
dec esi
mov byte [ecx - 3], dl
mov byte [ecx], al
mov byte [ecx + 1], al
add ecx, 0x20
dec esi
jne 0x4a0dc2
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
shl esi, 5
add ebp, esi
mov dword [esp + 0x1c], eax
xor esi, esi
jmp 0x4a09b0
push 0xc
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x54], 1
je 0x4a0e10
push 0x97
mov ecx, eax
call fcn.0049bd50
jmp 0x4a0e12
xor eax, eax
push 0x5d1fa4
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x64], eax
call sub.MSVCR71.dll__CxxThrowException
push 0xc
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x5c], eax
cmp eax, esi
mov dword [esp + 0x54], esi
je 0x4a0e51
push 0x97
mov ecx, eax
call fcn.0049bd50
jmp 0x4a0e53
xor eax, eax
push 0x5d1fa4
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x24], eax
call sub.MSVCR71.dll__CxxThrowException
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c
ret