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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5f537c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0x14]
mov esi, dword [edi + 0x74]
mov ecx, dword [eax + 0x28]
mov eax, 0xaaaaaaab
add ecx, ecx
mul ecx
mov ecx, edx
shr ecx, 1
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
nop dword [eax]
cmp dword [esi + 0x14], 0
movsx edx, byte [edi + 0x44]
mov dword [ebp - 0x20], edx
jge 0x4a2864
push esi
call fcn.004a4a50
add esp, 4
test eax, eax
jne 0x4a2b89
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov al, byte [esi + 0xc]
test edx, edx
jne 0x4a299f
test al, al
je 0x4a2b89
mov ecx, dword [esi + 0x48]
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x18], ebx
je 0x4a28a5
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4a28a5
cmp dword [edx + 0x60], 0
je 0x4a28db
push ecx
call fcn.00518db0
jmp 0x4a28cb
mov ebx, dword [edx + 0x28]
test ebx, ebx
jne 0x4a2b2a
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x4a28c6
call fcn.004caa20
jmp 0x4a28cb
call fcn.004cbce0
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a2b2a
mov ebx, dword [ebp - 0x18]
push 0
push dword [esi + 4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call fcn.004a0a50
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
push esi
call fcn.004aab40
mov eax, dword [ebp - 0x20]
add esp, 0x20
cmp byte [ebx + 0x11], 0
mov dword [ebp - 0x20], eax
je 0x4a2920
lea ecx, [ebp - 0x18]
push ecx
push dword [esi + 4]
push 5
push eax
push ebx
call fcn.004ce490
add esp, 0x14
mov ebx, dword [ebp - 0x18]
test ebx, ebx
jne 0x4a2b2a
movzx eax, byte [esi + 0xc]
mov ebx, dword [ebp - 0x1c]
add eax, eax
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [ebx + 0x1c]
push eax
call fcn.0056cbe0
movzx eax, byte [esi + 0xc]
shl eax, 2
push eax
lea eax, [esi + 0x24]
push eax
lea eax, [ebx + 0x24]
push eax
call fcn.0056cbe0
mov al, byte [esi + 0xc]
mov byte [ebx + 0xc], al
mov eax, dword [ebx + 0x38]
movzx eax, byte [eax]
and eax, 0xfffffff7
push eax
push esi
call fcn.0052c660
movzx ecx, byte [esi + 9]
add esp, 0x20
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x20]
bswap edx
mov dword [ecx + eax + 8], edx
mov ecx, dword [ebp - 0x24]
mov dword [edi + 0x7c], ebx
xor ebx, ebx
xor eax, eax
mov byte [edi + 0x44], 1
mov dword [edi + 0x46], eax
mov dword [edi + 0x78], esi
mov esi, dword [edi + 0x7c]
mov dword [edi + 0x74], esi
jmp 0x4a2840
test al, al
jne 0x4a29ac
cmp dword [esi + 0x14], ecx
jle 0x4a2b89
mov ecx, dword [edi + edx*4 + 0x74]
movzx eax, word [edi + edx*2 + 0x46]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov edx, dword [ecx + 0x48]
test byte [edx + 0x1c], 4
mov ebx, dword [edx + 0x14]
je 0x4a29dd
mov eax, dword [ebx + 0x18]
cmp eax, dword [edx + 0x18]
jb 0x4a29dd
cmp dword [ebx + 0x60], 0
je 0x4a2a16
push edx
call fcn.00518db0
jmp 0x4a2a06
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x4a2ab3
mov ecx, dword [edx + 0x14]
push edx
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
jbe 0x4a2a01
call fcn.004caa20
jmp 0x4a2a06
call fcn.004cbce0
mov ecx, dword [ebp - 0x1c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a2ab3
cmp dword [ecx + 0x14], 0
jge 0x4a2a32
push ecx
call fcn.004a4a50
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4a2ab3
mov ecx, dword [ebp - 0x1c]
cmp byte [esi + 3], 0
je 0x4a2a6b
cmp byte [esi + 0xc], 1
jne 0x4a2a6b
mov ax, word [esi + 0x1c]
cmp ax, word [esi + 0x18]
jne 0x4a2a6b
cmp dword [ecx + 4], 1
mov ebx, dword [ebp - 0x18]
je 0x4a2a6e
movzx eax, word [ecx + 0x18]
cmp eax, ebx
jne 0x4a2a6e
lea eax, [ebp - 0x14]
push eax
push esi
push ecx
call fcn.004a4260
add esp, 0xc
mov ebx, eax
jmp 0x4a2ab3
mov ebx, dword [ebp - 0x18]
mov eax, dword [edi + 0x14]
push dword [eax + 0x24]
call fcn.004cce20
movzx ecx, byte [edi + 3]
and ecx, 1
mov dword [ebp - 0x18], eax
push ecx
xor ecx, ecx
cmp dword [ebp - 0x20], 1
sete cl
push ecx
push eax
push ebx
push dword [ebp - 0x1c]
call fcn.004a2bb0
mov ebx, eax
add esp, 0x18
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4a2aad
push eax
call fcn.004cd360
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov edx, dword [esi + 0x48]
mov byte [esi + 0xc], 0
test byte [edx + 0x1c], 0x20
je 0x4a2b02
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0045aea0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov edi, dword [ebp - 0x2c]
add esp, 0x10
jmp 0x4a2b0b
push edx
call fcn.004f7fe0
add esp, 4
mov cl, byte [edi + 0x44]
movsx esi, cl
lea eax, [ecx - 1]
mov byte [edi + 0x44], al
mov esi, dword [edi + esi*4 + 0x74]
mov dword [edi + 0x74], esi
test ebx, ebx
jne 0x4a2b89
mov ecx, dword [ebp - 0x24]
jmp 0x4a2840
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x7c], 0
test eax, eax
je 0x4a2b89
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4a2b80
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.0045aea0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
add esp, 0x10
jmp 0x4a2b89
push edx
call fcn.004f7fe0
add esp, 4
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4a2b99
push eax
call fcn.004cd360
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a8ed
mov esp, ebp
pop ebp
ret