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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x268], ebx
jne 0x4a2261
cmp dword [edi + 0x26c], ebx
jne 0x4a2261
cmp dword [edi + 0x274], ebx
je 0x4a2256
cmp byte [ebp + 0x10], bl
mov esi, dword [ebp + 8]
jne 0x4a21e9
mov eax, dword [ebp + 0xc]
mov edx, dword [edi]
mov edx, dword [edx + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call edx
mov eax, dword [esi + 4]
test al, 1
jne 0x4a21e9
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x4a21b1
add eax, eax
cmp eax, ebx
jne 0x4a219c
mov eax, 1
mov edx, dword [esi]
shl eax, 4
push eax
push edx
call fcn.0045d790
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4a21e9
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x28]
shr eax, 1
shl eax, 4
add eax, dword [esi]
mov dword [eax], ecx
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 4]
test al, 1
jne 0x4a2256
shr eax, 1
lea edx, [eax - 1]
test eax, edx
jne 0x4a2219
add eax, eax
cmp eax, ebx
jne 0x4a2204
mov eax, 1
shl eax, 4
push eax
mov eax, dword [esi]
push eax
call fcn.0045d790
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4a2256
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x178]
shr eax, 1
add edi, 0x178
shl eax, 4
add eax, dword [esi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [esi + 4], ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x274], ebx
jne 0x4a2167
test byte [edi + 8], 2
jne 0x4a2167
fldz
fcomp dword [edi + 0x270]
fnstsw ax
test ah, 0x44
jp 0x4a2167
cmp byte [ebp + 0x10], bl
je 0x4a230a
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
test al, 1
jne 0x4a2256
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x4a22c2
add eax, eax
cmp eax, ebx
jne 0x4a22ad
mov eax, 1
mov edx, dword [esi]
shl eax, 4
push eax
push edx
call fcn.0045d790
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4a2256
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x178]
shr eax, 1
lea ecx, [edi + 0x178]
shl eax, 4
add eax, dword [esi]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 4]
mov edx, eax
and edx, 0xfffffffe
add edx, 2
and eax, 1
xor edx, eax
mov dword [esi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov eax, dword [eax + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call eax
cmp dword [edi + 0x26c], ebx
mov esi, dword [edi + 0x184]
mov eax, dword [edi + 0x178]
mov edx, dword [edi + 0x17c]
mov ecx, dword [edi + 0x180]
mov dword [esp + 0x84], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ecx
je 0x4a2684
cmp eax, ecx
jge 0x4a2684
cmp edx, dword [esp + 0x84]
jge 0x4a2684
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
jge 0x4a2684
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x24]
jge 0x4a2684
mov ecx, dword [edi + 0x178]
mov dword [esp + 0x8c], edx
mov edx, dword [edi + 0x180]
mov edi, dword [edi + 0x184]
add dword [esp + 0x8c], 1
add ecx, 1
sub edi, 1
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0x1c]
sub edx, 1
mov dword [esp + 0x94], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x20]
add eax, 1
add ecx, 1
sub edi, 1
mov dword [esp + 0x28], eax
sub edx, 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], edi
lea edi, [esp + 0x98]
lea eax, [esp + 0x88]
lea ecx, [esp + 0x78]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0xf0], ebx
mov dword [esp + 0xf4], ebx
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x114], ebx
mov dword [esp + 0x30], edx
call fcn.00484ed0
lea edi, [esp + 0xd8]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
call fcn.00484ed0
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x4a2514
mov ecx, dword [esp + 0x14]
lea eax, [esp + ecx + 0xd8]
lea ecx, [esp + ecx + 0x98]
lea edi, [esp + 0x38]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.00484ed0
cmp eax, ebx
jbe 0x4a25e0
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
test al, 1
jne 0x4a25d6
shr eax, 1
lea ecx, [eax - 1]
test eax, ecx
jne 0x4a25a3
add eax, eax
cmp eax, ebx
jne 0x4a258e
mov eax, 1
mov edx, dword [esi]
shl eax, 4
push eax
push edx
call fcn.0045d790
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4a25d6
mov eax, dword [esi + 4]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
shr eax, 1
shl eax, 4
add eax, dword [esi]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [esi + 4], ecx
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x4a2573
mov ecx, dword [esp + 0x14]
lea eax, [esp + ecx + 0x98]
lea edi, [esp + 0x38]
lea ecx, [esp + ecx + 0xd8]
call fcn.00484ed0
cmp eax, ebx
jbe 0x4a2670
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
test al, 1
jne 0x4a2666
shr eax, 1
lea edx, [eax - 1]
test eax, edx
jne 0x4a2633
add eax, eax
cmp eax, ebx
jne 0x4a261e
mov eax, 1
shl eax, 4
push eax
mov eax, dword [esi]
push eax
call fcn.0045d790
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4a2666
mov eax, dword [esi + 4]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
shr eax, 1
shl eax, 4
add eax, dword [esi]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [esi + 4], ecx
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x4a2603
mov eax, dword [esp + 0x14]
add eax, 0x10
cmp eax, 0x40
mov dword [esp + 0x14], eax
jb 0x4a2510
lea edi, [esp + 0x38]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x78]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call fcn.00484ed0
cmp eax, ebx
jbe 0x4a274d
mov dword [esp + 0x10], eax
lea ecx, [ecx]
mov eax, dword [esi + 4]
test al, 1
jne 0x4a2743
shr eax, 1
lea edx, [eax - 1]
test eax, edx
jne 0x4a2710
add eax, eax
cmp eax, ebx
jne 0x4a26fb
mov eax, 1
shl eax, 4
push eax
mov eax, dword [esi]
push eax
call fcn.0045d790
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4a2743
mov eax, dword [esi + 4]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
shr eax, 1
shl eax, 4
add eax, dword [esi]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [esi + 4], ecx
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x4a26e0
lea edi, [esp + 0x38]
lea eax, [esp + 0x78]
lea ecx, [esp + 0x18]
call fcn.00484ed0
cmp eax, ebx
jbe 0x4a2256
mov dword [esp + 0x10], eax
lea ebx, [ebx]
mov eax, dword [esi + 4]
test al, 1
jne 0x4a27d3
shr eax, 1
lea edx, [eax - 1]
test eax, edx
jne 0x4a27a0
add eax, eax
cmp eax, ebx
jne 0x4a278b
mov eax, 1
shl eax, 4
push eax
mov eax, dword [esi]
push eax
call fcn.0045d790
add esp, 8
cmp eax, ebx
mov dword [esi], eax
je 0x4a27d3
mov eax, dword [esi + 4]
mov ecx, dword [edi]
mov edx, dword [edi + 4]
shr eax, 1
shl eax, 4
add eax, dword [esi]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [esi + 4], ecx
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x4a2770
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc