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

Disassembly:
sub esp, 0xc4
mov eax, dword [0x7a39fc]
push ebx
push ebp
push esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov esi, dword [eax + 8]
mov ebx, dword [eax + 4]
push edi
mov edi, ecx
mov ecx, esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], ebx
call fcn.004aea40
push eax
mov ecx, esi
call fcn.004ae770
mov ecx, ebx
mov dword [esp + 0x30], eax
call fcn.005ed8b0
mov ebx, eax
mov ecx, esi
mov dword [esp + 0x24], ebx
call fcn.004aee70
mov dword [esp + 0x34], eax
xor ebp, ebp
lea esi, [edi + 0x4c8]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x6be6f4
mov ecx, dword [esi - 0x288]
test ecx, ecx
jne 0x6be6f4
push eax
mov ecx, ebx
call fcn.006346c0
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x2c], ecx
je 0x6be6f4
mov eax, dword [edi + 0x4c8]
cmp eax, 0xffffffff
je 0x6be617
cmp eax, dword [esi]
jle 0x6be617
dec eax
mov dword [edi + 0x4c8], eax
mov eax, dword [edi + 0x91c]
cmp eax, 0xffffffff
je 0x6be62d
cmp eax, dword [esi]
jle 0x6be62d
dec eax
mov dword [edi + 0x91c], eax
mov eax, dword [edi + 0xd70]
cmp eax, 0xffffffff
je 0x6be643
cmp eax, dword [esi]
jle 0x6be643
dec eax
mov dword [edi + 0xd70], eax
mov eax, dword [edi + 0x11c4]
cmp eax, 0xffffffff
je 0x6be659
cmp eax, dword [esi]
jle 0x6be659
dec eax
mov dword [edi + 0x11c4], eax
mov eax, dword [edi + 0x1618]
cmp eax, 0xffffffff
je 0x6be66f
cmp eax, dword [esi]
jle 0x6be66f
dec eax
mov dword [edi + 0x1618], eax
mov eax, dword [edi + 0x1a6c]
cmp eax, 0xffffffff
je 0x6be685
cmp eax, dword [esi]
jle 0x6be685
dec eax
mov dword [edi + 0x1a6c], eax
mov eax, dword [edi + 0x1ec0]
cmp eax, 0xffffffff
je 0x6be69b
cmp eax, dword [esi]
jle 0x6be69b
dec eax
mov dword [edi + 0x1ec0], eax
mov eax, dword [edi + 0x2314]
cmp eax, 0xffffffff
je 0x6be6b1
cmp eax, dword [esi]
jle 0x6be6b1
dec eax
mov dword [edi + 0x2314], eax
mov eax, dword [edi + 0x2768]
cmp eax, 0xffffffff
je 0x6be6c7
cmp eax, dword [esi]
jle 0x6be6c7
dec eax
mov dword [edi + 0x2768], eax
push 0
call fcn.0060ef50
mov ecx, dword [esp + 0x2c]
call fcn.0060fb20
test eax, eax
je 0x6be6f4
push 1
push 0
mov ecx, eax
call fcn.004fdb20
mov ecx, dword [esp + 0x34]
push ebp
call fcn.00565560
and dword [esi - 4], 0xfffffffd
inc ebp
add esi, 0x454
cmp ebp, 9
jl 0x6be5d2
mov eax, dword [esp + 0x30]
add eax, 0x9c
mov ecx, dword [eax]
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x74], edx
mov eax, dword [eax + 8]
mov ecx, ebx
mov dword [esp + 0x78], eax
call fcn.006359c0
lea eax, [edi + 0x4c4]
xor ebp, ebp
mov dword [esp + 0x28], eax
cmp dword [eax + 4], 0xffffffff
jne 0x6bea9b
mov ecx, dword [eax - 0x284]
test ecx, ecx
je 0x6bea9b
mov eax, dword [ebx]
imul eax, eax, 0x88
lea ecx, [eax + ebx]
lea edx, [ecx + 0x5c]
mov eax, dword [edx]
mov dword [esp + 0x88], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x8c], eax
mov edx, dword [edx + 8]
mov dword [esp + 0x90], edx
lea eax, [ecx + 0x4c]
mov edx, dword [eax]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 4]
fld dword [esp + 0x38]
mov eax, dword [eax + 8]
fcomp dword [0x73d700]
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x3c], edx
fnstsw ax
test ah, 0x44
jp 0x6be7c9
fld dword [esp + 0x3c]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x44
jp 0x6be7c9
fld dword [esp + 0x40]
fcomp dword [0x73d700]
fnstsw ax
test ah, 0x44
jnp 0x6be87a
mov ecx, dword [ecx + 0x58]
push ecx
lea ecx, [ebx + 0x2dc]
call fcn.00634cc0
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x88]
push edx
mov eax, ecx
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0x3f800000
call fcn.004a96d0
fstp dword [esp]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
lea ecx, [esp + 0xd8]
call fcn.004ac960
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.004a9bb0
fld dword [esp + 0x44]
fadd dword [eax]
add esp, 0xc
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
fld dword [esp + 0x3c]
fadd dword [eax + 4]
fstp dword [esp + 0x68]
fld dword [esp + 0x40]
mov edx, dword [esp + 0x68]
fadd dword [eax + 8]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
fstp dword [esp + 0x6c]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
jmp 0x6be8b1
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x74]
push edx
add eax, 0x90
push eax
lea ecx, [esp + 0xc4]
push ecx
mov ecx, ebx
call fcn.006348c0
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x18], edx
push 1
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [esp + 0x40]
push 1
push ebp
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xa8], 0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
call fcn.00565130
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 1
mov ebx, eax
push ebx
push 0x40a00000
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.004aeb60
push ebx
mov ecx, esi
call fcn.004ae770
mov esi, eax
mov ecx, esi
call fcn.004efb20
mov ecx, dword [esp + 0x24]
push 0
mov dword [esp + 0x30], eax
call fcn.006346c0
add eax, 0x24
mov ecx, dword [eax]
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x80], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x340]
mov ecx, dword [eax + 4]
push 0
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0x14]
push 1
mov eax, edx
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x58], edx
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004ae6b0
mov ecx, eax
call fcn.004c30f0
mov ecx, eax
call fcn.004bcb70
cmp eax, 1
je 0x6bea01
cmp eax, 0xfffffffd
je 0x6bea01
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 0x58]
mov ecx, dword [esp + 0x24]
push eax
add ecx, 0x2dc
call fcn.00634cc0
mov edx, dword [eax]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 8]
lea eax, [esp + 0x10]
push eax
push 1
push ebx
push 0x40a00000
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x2c], edx
call fcn.004aeb60
push 0
push 1
push 1
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.004cd1a0
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call fcn.004cd170
mov ecx, dword [esp + 0x34]
push ebx
push ebp
call fcn.00565620
push 1
mov ecx, esi
call fcn.004ccd80
mov ecx, dword [esi + 0x340]
call fcn.005cf060
push 1
push 1
mov ecx, esi
call fcn.004fdb20
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x70]
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x30]
push eax
mov ecx, ebx
call fcn.00517a20
test eax, eax
jne 0x6bea74
push eax
push eax
mov eax, dword [esi + 4]
push 1
push 1
push eax
mov ecx, ebx
call fcn.0051b370
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x6bea83
push 1
call fcn.0060ef50
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
mov ebx, dword [esp + 0x24]
inc edx
or ecx, 2
mov dword [esp + 0x20], edx
mov dword [eax], ecx
inc ebp
add eax, 0x454
cmp ebp, 9
mov dword [esp + 0x28], eax
jl 0x6be734
mov ecx, dword [edi + 0x4c4]
mov ebp, dword [edi + 0x918]
mov ebx, dword [edi + 0xd6c]
mov esi, dword [edi + 0x11c0]
mov edx, dword [edi + 0x1614]
mov eax, 0xfffffffb
and ecx, eax
mov dword [edi + 0x4c4], ecx
mov ecx, dword [edi + 0x1a68]
and ebp, eax
and ebx, eax
and esi, eax
mov dword [edi + 0x918], ebp
mov ebp, dword [edi + 0x1ebc]
mov dword [edi + 0xd6c], ebx
mov ebx, dword [edi + 0x2310]
mov dword [edi + 0x11c0], esi
mov esi, dword [edi + 0x2764]
and ecx, eax
mov dword [edi + 0x1a68], ecx
mov ecx, dword [esp + 0x1c]
and edx, eax
and ebp, eax
and ebx, eax
and esi, eax
mov dword [edi + 0x1614], edx
mov dword [edi + 0x1ebc], ebp
mov dword [edi + 0x2310], ebx
mov dword [edi + 0x2764], esi
mov ecx, dword [ecx + 4]
push 1
call fcn.004b6950
mov ecx, dword [esp + 0x44]
lea esi, [edi + 0x74]
xor ebx, ebx
push esi
mov dword [edi + 0x6c], ebx
call fcn.005edd90
cmp dword [0x7a2370], ebx
je 0x6beb83
mov eax, dword [edi + 0x44]
and eax, 0xfffffeff
mov edx, eax
and edx, 0x600
cmp edx, 0x400
mov dword [edi + 0x44], eax
je 0x6beba5
and eax, 0xfffffbff
or eax, 0x200
mov dword [edi + 0x44], eax
jmp 0x6beba5
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005ed690
mov dword [eax + 0x78], ebx
mov ecx, dword [edi + 0x44]
and ecx, 0xfffffcff
or ecx, 0x400
mov dword [edi + 0x44], ecx
mov ecx, dword [edi + 0x18]
call fcn.0040be00
push 0x73d71c
mov ecx, esi
call fcn.005e5390
test eax, eax
je 0x6bec02
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
call fcn.005ed690
push ebx
push ebx
mov dword [eax + 0xc04], 1
mov ecx, dword [0x7a3a00]
push esi
call fcn.005d0fc0
push 0x73d71c
mov ecx, esi
call fcn.005e5140
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005ed690
mov dword [eax + 0xc04], ebx
cmp dword [edi + 0x64], ebx
jne 0x6bec2a
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
call fcn.005edc10
test eax, eax
je 0x6bec2a
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
push ebx
push ebx
push ebx
call fcn.005edc20
cmp dword [edi + 0x70], ebx
je 0x6bec4a
mov ecx, dword [edi + 0x18]
push 5
call fcn.0040a140
mov eax, dword [0x74c5ec]
mov ecx, dword [0x7a39ec]
push eax
call fcn.005d5e80
mov ecx, dword [edi + 0x64]
mov edx, dword [0x7a39fc]
push 1
push ecx
mov ecx, dword [edx + 4]
call fcn.005eda60
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005ed690
mov edx, dword [edi + 0x64]
mov ecx, dword [eax + 0x98]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x97c], edx
pop ebx
add esp, 0xc4
ret