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

Disassembly:
sub esp, 0x2ac
push ebp
mov ebp, dword [esp + 0x2bc]
push edi
push 0x100
lea eax, [esp + 0x78]
push 0
push eax
mov dword [esp + 0x1c], ebp
call fcn.0047e890
mov edi, dword [esp + 0x2c8]
mov eax, dword [edi]
mov edx, dword [esp + 0x2c4]
mov dword [esp + 0x164], 0
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x158], ecx
mov ecx, dword [edx + 0x44]
mov edx, dword [esp + 0x2d0]
add esp, 0xc
test edx, edx
mov dword [esp + 0x170], ecx
je 0x4a286a
cmp dword [edx], 0
je 0x4a30ae
push esi
mov esi, dword [ebp]
test esi, esi
je 0x4a30ad
push ebx
mov ebx, dword [edi + 8]
mov ecx, dword [ebx + 0x14]
cmp dword [ecx + 4], 0x7ffffffe
je 0x4a30ac
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x4a28c8
cmp esi, 4
jne 0x4a289f
mov esi, dword [ebp + 0x20]
cmp byte [esi + 0x1c], 0
je 0x4a28c8
mov eax, dword [esp + 0x2c0]
mov eax, dword [eax + 0xc4]
push edx
push ebp
push edi
mov dword [ecx + 0xc4], eax
call fcn.004a1b10
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x2ac
ret
mov cl, byte [eax + 0x25]
test cl, cl
je 0x4a28d8
movzx esi, cl
mov dword [esp + 0x10], esi
jmp 0x4a28e4
movzx esi, byte [eax + 0x24]
mov dword [esp + 0x10], 1
cmp dword [ebx], 0
mov dword [esp + 0x34], esi
jne 0x4a28f5
mov ecx, dword [0x6bec80]
mov dword [ebx], ecx
mov ecx, dword [edi]
mov eax, dword [ecx + 0x2c]
test eax, eax
je 0x4a291f
cmp eax, 5
je 0x4a291f
mov edx, dword [ecx + 0x20]
test edx, edx
je 0x4a291f
mov edx, dword [edi + 8]
mov edx, dword [edx + 0x14]
mov ebx, dword [edx + 4]
test ebx, ebx
mov dword [esp + 0x3c], 1
jl 0x4a2927
mov dword [esp + 0x3c], 0
test eax, eax
je 0x4a29ea
cmp eax, 5
je 0x4a29ea
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x4a29ea
mov edx, dword [edi + 8]
mov eax, dword [edx + 0x14]
mov eax, dword [eax + 4]
test eax, eax
jl 0x4a295b
cmp eax, 0x7fffffff
jne 0x4a29ea
mov esi, dword [edx]
mov ecx, 0x10
lea edi, [esp + 0x17c]
mov dword [esp + 0x60], esi
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x1bc]
mov dword [esp + 0x1a4], ecx
mov ecx, dword [edx]
xor eax, eax
cmp word [ecx], ax
mov dword [esp + 0x44], 1
jle 0x4a29a7
mov edi, edi
mov ecx, dword [ecx + 0x28]
mov ecx, dword [ecx + eax*4]
mov dword [esp + eax*4 + 0x1bc], ecx
mov ecx, dword [edx]
movsx esi, word [ecx]
inc eax
cmp eax, esi
jl 0x4a2990
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x17c]
mov dword [edx], eax
cmp dword [esp + 0x10], esi
mov dword [esp + 0x128], 0
jg 0x4a307a
lea esp, [esp]
mov eax, dword [0x6bf240]
test eax, eax
jne 0x4a29f4
mov eax, dword [0x6bf230]
test eax, eax
jne 0x4a29f4
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x4a2a07
mov dword [esp + 0x44], 0
jmp 0x4a29b4
mov ecx, dword [esp + 0x2c0]
mov edx, dword [ecx + 0x8c]
mov dword [esp + 0x14], edx
mov edi, edx
mov eax, dword [esp + 0x2c4]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a2a28
mov ecx, dword [esp + 0x10]
push ecx
push eax
call dword [eax + 0x18]
add esp, 8
movzx esi, al
jmp 0x4a2a2c
mov esi, dword [esp + 0x10]
cmp esi, 0xff
mov dword [esp + 0x30], esi
je 0x4a3065
mov edx, dword [esp + 0x2c4]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 0x28]
xor eax, eax
cmp edi, eax
mov dword [esp + 0x68], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x74], edx
mov dword [esp + 0x150], eax
je 0x4a2a70
mov dword [edi + 0x74], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x2c0]
mov ebx, dword [esp + 0x2c4]
push eax
push edi
mov eax, esi
call fcn.004a1590
add esp, 8
test eax, eax
jne 0x4a3065
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x14]
mov ecx, dword [ecx + 4]
test ecx, ecx
jg 0x4a2aad
cmp esi, 5
jge 0x4a2aad
cmp ecx, 0xfffffffc
jne 0x4a2ac6
lea edx, [esp + 0x128]
push edx
push esi
push eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
push ecx
push edi
call fcn.005504b0
add esp, 0x14
mov eax, dword [esp + 0x3c]
test eax, eax
je case.0x4a2adb.4
cmp esi, 5
jge case.0x4a2adb.4
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x4a2adb
jmp dword [eax*4 + 0x4a30b8]
mov eax, dword [ebx + 8]
mov dl, byte [eax + 0xc]
mov byte [eax + 0xf], dl
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
mov edx, dword [eax + 4]
mov dword [eax + 0x10], edx
jmp case.0x4a2adb.4
mov eax, dword [ebx + 8]
mov cl, byte [eax + 0xd]
mov byte [eax + 0xf], cl
mov edx, dword [ebx + 8]
mov eax, dword [edx]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + 8]
mov dword [eax + 0x10], ecx
jmp case.0x4a2adb.4
mov eax, dword [ebx + 8]
mov dl, byte [eax + 0xe]
mov byte [eax + 0xf], dl
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
mov edx, dword [eax + 0xc]
mov dword [eax + 0x10], edx
jmp case.0x4a2adb.4
push 0
call fcn.0044b1f0
add esp, 4
mov eax, dword [ebx]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a2b56
mov ecx, dword [ebx + 8]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4a2b56
mov edx, dword [ecx + 0x28]
mov ecx, dword [edx + 0x10]
mov dword [esp + 0x150], ecx
mov edx, dword [edi + 0x8c]
mov ecx, dword [edi + 0x88]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
mov edx, dword [esp + 0x2d8]
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx + 8]
push ecx
push edx
push eax
call dword [eax]
fld dword [edi + 0x68]
fcomp dword [0x66cb3c]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x2c]
add esp, 0x20
mov dword [esp + 0x158], ecx
fnstsw ax
test ah, 0x41
jne 0x4a2bae
mov ebx, dword [edi + 0x68]
mov dword [esp + 0x2c], ebx
jmp 0x4a2bbb
fld dword [edi + 0x68]
fchs
fstp dword [esp + 0x2c]
mov ebx, dword [esp + 0x2c]
fld dword [edi + 0x6c]
fcomp dword [0x66cb3c]
fnstsw ax
test ah, 0x41
jne 0x4a2bd4
mov esi, dword [edi + 0x6c]
mov dword [esp + 0x28], esi
jmp 0x4a2be1
fld dword [edi + 0x6c]
fchs
fstp dword [esp + 0x28]
mov esi, dword [esp + 0x28]
fld dword [edi + 0x70]
fcomp dword [0x66cb3c]
fnstsw ax
test ah, 0x41
jne 0x4a2bfa
mov edx, dword [edi + 0x70]
mov dword [esp + 0x20], edx
jmp 0x4a2c07
fld dword [edi + 0x70]
fchs
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fld dword [edi + 0x74]
fcomp dword [0x66cb3c]
fnstsw ax
test ah, 0x41
jne 0x4a2c20
mov ecx, dword [edi + 0x74]
mov dword [esp + 0x1c], ecx
jmp 0x4a2c2d
fld dword [edi + 0x74]
fchs
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
fld dword [esp + 0x2c]
mov dword [esp + 0x40], ebx
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
je 0x4a2c44
mov dword [esp + 0x40], ecx
fld dword [esp + 0x28]
mov dword [esp + 0x38], esi
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
je 0x4a2c5b
mov dword [esp + 0x38], edx
fld dword [esp + 0x40]
fcomp dword [esp + 0x38]
fnstsw ax
test ah, 0x41
jne 0x4a2c85
fld dword [esp + 0x2c]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x4a2c7f
mov dword [esp + 0x24], ebx
jmp 0x4a2c9c
mov dword [esp + 0x24], ecx
jmp 0x4a2c9c
fld dword [esp + 0x28]
mov dword [esp + 0x24], esi
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 0x41
je 0x4a2c9c
mov dword [esp + 0x24], edx
fld dword [esp + 0x24]
mov dword [esp + 0x13c], 1
fmul qword [0x66bac0]
fstp dword [esp + 0x78]
fld dword [esp + 0x78]
fcomp dword [0x671620]
fnstsw ax
test ah, 0x41
je 0x4a2cd1
mov dword [esp + 0x13c], 0
mov esi, dword [esp + 0x2c4]
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x4a2df3
mov eax, dword [esi]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4a2df3
cmp dword [eax + 0x2c], 5
jne 0x4a2d00
push 0
call fcn.0044b1f0
add esp, 4
mov edx, dword [esp + 0x30]
mov al, byte [ebx + edx - 1]
test al, al
jne 0x4a2dea
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x4a2d73
cmp dword [eax], 4
jne 0x4a2d73
cmp edx, 4
je 0x4a2dea
mov edx, dword [eax + 0x20]
mov eax, dword [edx + 0x28]
cmp dword [eax + 0x44], 0xffffffff
jne 0x4a2dea
mov ecx, dword [eax + 0x198]
test ecx, ecx
jne 0x4a2dea
cmp dword [edi + 0x1c], 4
jne 0x4a2dea
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a3026
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x4a3026
mov ecx, eax
mov dword [ecx + 0x74], 0
jmp 0x4a2dea
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x4a2dbf
mov eax, dword [ecx + 0x14]
mov eax, dword [eax + 4]
cmp eax, 0x7fffffff
je 0x4a2dea
test eax, eax
jle 0x4a2da9
cmp eax, edx
jne 0x4a2db3
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x4a2dea
cmp byte [ecx + 0xf], 0xff
je 0x4a3026
jmp 0x4a2dea
cmp eax, 0xfffffffc
je 0x4a2d92
cmp edx, 5
jl 0x4a2d92
cmp byte [ecx + 0xf], 0xff
je 0x4a3026
jmp 0x4a2dea
cmp byte [ecx + 0xf], 0xff
jne 0x4a2dea
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a2ddd
mov ecx, dword [eax + 0x60]
test ecx, ecx
je 0x4a2ddd
mov dword [eax + 0x74], 1
jmp 0x4a2dea
mov eax, dword [0x682c38]
test eax, eax
jne 0x4a3026
mov ecx, dword [esp + 0x30]
mov byte [ebx + ecx - 1], 1
mov ebx, dword [esp + 0xc0]
test ebx, ebx
jne 0x4a2e20
mov edx, dword [esp + 0x2c4]
push 1
push edx
push edi
lea esi, [esp + 0x88]
mov eax, ebp
call fcn.004a2370
add esp, 0xc
jmp 0x4a3026
mov eax, dword [ebx]
sub eax, 0
je 0x4a301b
dec eax
je 0x4a2ef2
dec eax
je 0x4a2e44
push 0
call fcn.0044b1f0
add esp, 4
jmp 0x4a301b
mov ebp, dword [esp + 0x18]
jmp 0x4a2e50
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [ebx + 0x14]
push ebx
push ebp
mov dword [esp + 0x54], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
call fcn.005547d0
add esp, 8
cmp eax, 1
je 0x4a2ee2
movsx edi, word [ebx + 0x1c]
test edi, edi
je 0x4a2ebf
jmp 0x4a2e90
mov eax, dword [esp + 0x2c4]
mov ecx, dword [eax + 8]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x2c4]
lea edx, [esp + 0x80]
push edx
push ebp
push eax
push ecx
mov eax, esi
call fcn.004a24b0
add esp, 0x14
add esi, 0x14
dec edi
jne 0x4a2e90
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
push ebp
call fcn.005537d0
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push ecx
push edx
push ebx
call fcn.005537d0
add esp, 0x18
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x4a2e50
jmp 0x4a301b
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x14]
push ebx
push ebp
xor esi, esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
call fcn.005547d0
add esp, 8
cmp eax, 1
je 0x4a3010
test eax, eax
jne 0x4a2f9b
cmp word [ebx + 0x1c], 1
mov eax, dword [ebx + 0x20]
jne 0x4a2f9b
mov dx, word [eax + 4]
cmp dx, word [eax + 6]
jne 0x4a2f9b
mov di, word [eax + 0x12]
cmp word [eax + 0x10], di
jne 0x4a2f9b
cmp word [ebx + 4], dx
lea ecx, [ebx + 4]
jne 0x4a2f6b
cmp word [ebx + 6], di
jne 0x4a2f6b
mov di, word [ebx + 8]
cmp di, word [eax]
jne 0x4a2f6b
mov di, word [ebx + 0xa]
cmp di, word [eax + 2]
je 0x4a2f96
mov word [ecx], dx
mov dx, word [eax + 0x12]
mov word [ebx + 6], dx
mov dx, word [eax]
push ecx
mov word [ebx + 8], dx
mov ax, word [eax + 2]
lea ecx, [ebp + 4]
push ecx
mov word [ebx + 0xa], ax
call fcn.005383a0
add esp, 8
test eax, eax
jne 0x4a2f9b
mov esi, 1
mov edx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x2c4]
test esi, esi
mov dword [esp + 0x158], edx
lea esi, [esp + 0x7c]
je 0x4a2fcb
mov ecx, dword [esp + 0x2c0]
push 0
push eax
push ecx
mov eax, ebp
call fcn.004a2370
add esp, 0xc
jmp 0x4a2fed
mov edx, dword [eax + 8]
mov eax, dword [eax]
movsx ecx, word [ebx + 0x1c]
push edx
mov edx, dword [ebx + 0x20]
push eax
mov eax, dword [esp + 0x2c8]
push ecx
push edx
push eax
mov edi, ebp
call fcn.004a2670
add esp, 0x14
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
push edx
push ebp
call fcn.005537d0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push eax
push ecx
push ebx
call fcn.005537d0
add esp, 0x18
mov ebp, dword [ebp + 0xc]
test ebp, ebp
jne 0x4a2ef6
mov ebx, dword [ebx + 0xc]
test ebx, ebx
jne 0x4a2e20
mov esi, dword [esp + 0x2c4]
mov eax, dword [esi]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4a3045
lea edx, [esp + 0x7c]
push edx
mov edx, dword [esi + 8]
push edx
push eax
call ecx
add esp, 0xc
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
mov eax, dword [esp + 0x74]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jle 0x4a29d0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4a3092
mov ecx, dword [esp + 0x2c4]
mov edx, dword [ecx + 8]
mov eax, dword [esp + 0x60]
mov dword [edx], eax
mov ecx, dword [esp + 0x2c4]
mov eax, dword [ecx + 8]
mov edx, dword [eax]
cmp edx, dword [0x6bec80]
jne 0x4a30ac
mov dword [eax], 0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x2ac
ret