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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50f0f2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x330
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x1140]
call fcn.004dfca0
test eax, eax
je 0x415bda
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc8]
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xec]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xec]
mov eax, dword [edi + 0x1158]
lea esi, [edi + 0x1150]
xor ebx, ebx
test eax, eax
jle 0x415332
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + ebx*4]
test ecx, ecx
je 0x41532a
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 8]
inc ebx
cmp ebx, eax
jl 0x41531a
push 0xa
push 0
mov ecx, esi
call fcn.004de680
mov ecx, edi
call fcn.00412e60
lea ecx, [esp + 0x7c]
mov dword [esp + 0x90], eax
call fcn.00407c00
push 0xa
push 0
lea ecx, [esp + 0x84]
mov dword [esp + 0x350], 0
mov dword [esp + 0x84], 0x520da8
call fcn.004de680
mov eax, dword [edi + 0x1140]
lea ebx, [edi + 0x268]
push eax
mov ecx, ebx
mov dword [esp + 0x34c], 1
call fcn.004e9c70
push eax
lea ecx, [esp + 0xc8]
call fcn.004db7e0
lea ecx, [esp + 0x7c]
lea esi, [edi + 0x10f4]
push ecx
push esi
lea ecx, [esp + 0xc8]
mov byte [esp + 0x350], 2
call fcn.004dc820
lea ecx, [esp + 0x20]
mov ebp, eax
call fcn.0050b234
mov eax, dword [esp + 0xd0]
mov byte [esp + 0x348], 3
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x41540e
mov edx, dword [edi + 0x1140]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x180]
push ecx
push eax
push edx
lea eax, [esp + 0x2c]
push str._s____s_______s
push eax
call fcn.0050b258
add esp, 0x14
jmp 0x415432
mov ecx, dword [edi + 0x1140]
mov eax, dword [esp + 0x180]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x20]
push edx
push eax
push str._s_____s
push ecx
call fcn.0050b258
add esp, 0x10
push 0
push 0
push 0x40240000
push 0
lea ecx, [esp + 0xd0]
call fcn.00415bf0
fadd qword [0x520dc8]
sub esp, 8
lea edx, [esp + 0x38]
fstp qword [esp]
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push edx
call fcn.0050b33c
lea ecx, [edi + 0x108]
call fcn.00476ea0
test ebp, ebp
jg 0x4154ea
push 1
push 0
push 0
push 0
push str.Invalid_document_format_
push 0x543a04
call fcn.00439840
add esp, 0x18
lea ecx, [esp + 0x20]
mov byte [esp + 0x348], 2
call fcn.0050b22e
lea ecx, [esp + 0xc0]
mov byte [esp + 0x348], 1
call fcn.004db950
lea ecx, [esp + 0x7c]
mov dword [esp + 0x348], 0xffffffff
mov dword [esp + 0x7c], 0x522c58
call fcn.00403de0
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x7c]
lea ecx, [esp + 0xc0]
push eax
push esi
call fcn.004dcac0
lea ecx, [esp + 0x7c]
push ecx
push esi
lea ecx, [esp + 0xc8]
call fcn.004dc4a0
lea edx, [esp + 0x188]
lea eax, [esp + 0x7c]
push edx
push eax
mov ecx, 0x5497c8
call fcn.0040fa30
mov ecx, edi
call fcn.00414fa0
lea ecx, [esp + 0xc0]
push ecx
mov ecx, ebx
call fcn.004e9710
mov ecx, edi
call fcn.0041f590
mov eax, dword [edi + 0x1d0]
xor ebx, ebx
xor ebp, ebp
cmp eax, ebx
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], ebp
jle 0x4157f6
mov dword [esp + 0x1c], ebx
mov edx, dword [edi + 0x1cc]
mov eax, dword [edx + ebp*4]
mov edx, dword [edi + 0x2d4]
mov eax, dword [eax + 4]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x1c]
fld qword [edx + ecx*8]
mov edx, dword [edi + 0x1e0]
lea ecx, [esp + 0x94]
fstp qword [esp + 0x3c]
add eax, edx
push eax
call fcn.00479070
fld qword [esp + 0x3c]
fcomp qword [0x520870]
mov byte [esp + 0x348], 4
fnstsw ax
test ah, 0x41
jne 0x415720
xor esi, esi
mov dword [esp + 0x4c], 0x522c78
mov dword [esp + 0x50], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x9c]
mov byte [esp + 0x348], 5
test eax, eax
jle 0x41565d
xor ebp, ebp
jmp 0x4155ee
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x98]
lea ecx, [esi + 1]
push 0xffffffffffffffff
push ecx
fld dword [eax + ebp + 4]
lea ecx, [esp + 0x54]
fstp qword [esp + 0xb8]
fld dword [eax + ebp + 8]
fstp qword [esp + 0xc0]
call fcn.004ed930
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0xb0]
shl esi, 4
mov ecx, dword [esp + 0xb8]
add esi, eax
mov eax, dword [esp + 0xb4]
inc ebx
mov dword [esi], edx
mov edx, dword [esp + 0xbc]
add ebp, 0xc
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov eax, dword [esp + 0x9c]
cmp ebx, eax
jl 0x4155ea
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x4c]
push eax
push ecx
push edx
call fcn.004926a0
add esp, 0xc
test al, al
je 0x4157b0
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x9c]
call fcn.0042f940
mov eax, dword [esp + 0x54]
xor ebp, ebp
test eax, eax
jle 0x4156e9
xor ebx, ebx
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x50]
inc ecx
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x9c]
lea esi, [ebx + eax]
call fcn.0042f940
mov eax, dword [esp + 0x9c]
inc ebp
fld qword [esi]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x98]
add ebx, 0x10
fstp dword [eax + edx*4 - 8]
fld qword [esi + 8]
lea eax, [eax + edx*4 - 0xc]
fstp dword [eax + 8]
mov dword [eax], 3
mov eax, dword [esp + 0x54]
cmp ebp, eax
jl 0x415698
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x4c], 0x522c78
mov eax, dword [esp + 0x50]
mov byte [esp + 0x348], 6
test eax, eax
je 0x41570e
push eax
call fcn.0050b204
add esp, 4
mov byte [esp + 0x348], 4
mov dword [esp + 0x4c], 0x520384
xor ebx, ebx
mov edx, dword [edi + 0x1cc]
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [edx + ebp*4]
call fcn.004708c0
mov ecx, dword [edi + 0x1cc]
lea eax, [esp + 0x94]
fild dword [edi + 0x119c]
mov edx, dword [ecx + ebp*4]
mov ecx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
fmul qword [0x522c70]
push edx
push eax
push ecx
sub esp, 8
fstp qword [esp]
fild dword [edi + 0x1194]
sub esp, 8
sub esp, 8
fmul qword [0x522c70]
fstp qword [esp + 8]
fild dword [edi + 0x1198]
fmul qword [0x522c70]
fstp qword [esp]
push 1
call fcn.004f5180
add esp, 0x2c
cmp eax, 1
jne 0x4157ba
mov eax, dword [edi + 0x1cc]
lea edx, [esp + 0x94]
push edx
mov ecx, dword [eax + ebp*4]
call fcn.004708c0
jmp 0x4157c4
mov byte [esp + 0x17], 1
jmp 0x4156ed
cmp eax, 0xffffffff
jne 0x4157c4
mov byte [esp + 0x17], 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x348], 3
call fcn.00479010
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi + 0x1d0]
inc ebp
add ecx, 0x1c
cmp ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
jl 0x415561
lea esi, [edi + 0x268]
mov ecx, esi
call fcn.004e6910
cmp dword [edi + 0x1124], ebx
je 0x41581a
mov eax, dword [edi + 0x1120]
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
jmp 0x41581e
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0xc0]
call fcn.004f6380
test eax, eax
je 0x41583a
push esi
lea ecx, [edi + 0x148]
call fcn.004e2310
mov eax, 0x522c30
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
lea edx, [esp + 0x68]
mov ecx, esi
push edx
mov byte [esp + 0x34c], 8
call fcn.004e9e90
mov eax, dword [esp + 0x70]
lea esi, [eax - 1]
cmp esi, ebx
jl 0x4158bd
mov ecx, dword [esp + 0x6c]
push 0xffffffffffffffff
mov edx, dword [ecx + esi*4]
lea ecx, [esp + 0x28]
mov dword [edx + 0x1e4], 1
mov eax, dword [esp + 0x70]
mov ebp, dword [eax + esi*4]
mov eax, dword [esp + 0x30]
mov ebx, eax
inc eax
push eax
call fcn.004de680
mov ecx, dword [esp + 0x28]
dec esi
mov dword [ecx + ebx*4], ebp
jns 0x415886
xor ebx, ebx
mov edx, dword [edi + 0x260]
mov dword [edi + 0x260], 1
mov eax, dword [edi + 0x1124]
mov dword [esp + 0x48], edx
cmp eax, ebx
mov dword [esp + 0x18], ebx
jle 0x415ae1
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x38], 4
cmp ecx, ebx
je 0x415ae1
xor edx, edx
cmp esi, ebx
mov dword [esp + 0x64], edx
jle 0x415abf
mov eax, dword [edi + 0x1120]
mov ebx, dword [esp + 0x38]
mov eax, dword [ebx + eax]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x415ab0
test ecx, ecx
je 0x415abd
lea ebp, [ecx - 1]
test ebp, ebp
mov dword [esp + 0x60], ebp
jl 0x415ab0
mov eax, dword [esp + 0x28]
push ebx
mov esi, dword [eax + ebp*4]
mov ecx, esi
call fcn.004f19a0
test al, al
je 0x415a95
mov eax, dword [esp + 0x2c]
sub eax, ebp
dec eax
je 0x415976
lea ecx, [eax*4]
mov eax, dword [esp + 0x28]
push ecx
lea edx, [eax + ebp*4 + 4]
lea eax, [eax + ebp*4]
push edx
push eax
nop
call fcn.00606e59
add esp, 0xc
mov ebp, dword [esp + 0x2c]
mov ecx, ebx
dec ebp
mov dword [esp + 0x2c], ebp
mov eax, dword [esi + 0x2a0]
push eax
call fcn.00471cd0
cmp eax, 0x186a0
je 0x415a95
lea ebp, [edi + 0x268]
push ebx
mov ecx, ebp
call fcn.004e96c0
xor ecx, ecx
push eax
mov cl, byte [edi + 0x294]
inc ecx
push ecx
push ebx
mov ecx, esi
call fcn.004f0e80
test al, al
jne 0x4159cc
mov dword [esi + 0x1e4], 1
jmp 0x415a95
push esi
mov ecx, ebp
call fcn.004e9c80
mov eax, dword [esi + 0x4a0]
test eax, eax
je 0x415a7a
mov al, byte [edi + 0x294]
test al, al
je 0x415a1e
push 0x14
call fcn.0050b264
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0x348], 9
je 0x415a16
mov edx, dword [esp + 0x90]
mov ecx, eax
push edx
push esi
call fcn.00444bb0
mov byte [esp + 0x348], 8
mov eax, dword [esi + 0x4a0]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x415a41
mov dword [eax + 8], esi
mov eax, dword [esp + 0x18]
push esi
push eax
mov ecx, edi
call fcn.00419260
test al, al
je 0x415a95
jmp 0x415a8b
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x258]
lea edx, [eax + 0x220]
mov dword [esi + 0x258], ecx
lea ecx, [esi + 0x220]
mov ebp, dword [edx]
mov dword [ecx], ebp
mov ebp, dword [edx + 4]
mov dword [ecx + 4], ebp
mov edx, dword [edx + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0x1e4]
mov dword [esi + 0x1e4], eax
jmp 0x415a95
mov ecx, dword [esp + 0x18]
push esi
push ecx
mov ecx, edi
call fcn.00419260
test al, al
je 0x415a95
mov dword [esi + 0x1e4], 0
mov ebp, dword [esp + 0x60]
dec ebp
mov dword [esp + 0x60], ebp
jns 0x415938
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x64]
inc edx
cmp edx, esi
mov dword [esp + 0x64], edx
jl 0x415909
xor ebx, ebx
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
mov edx, dword [edi + 0x1124]
inc eax
add ebp, 0x14
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], ebp
jl 0x4158f3
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x48]
cmp eax, ebx
mov byte [edi + 0x294], 0
mov dword [edi + 0x260], edx
je 0x415b07
push eax
call fcn.0050b204
add esp, 4
mov dword [esp + 0x28], ebx
push 1
lea ecx, [edi + 0x268]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], ebx
call fcn.004e94e0
mov ecx, edi
call fcn.00419140
mov al, byte [esp + 0x17]
test al, al
je 0x415b42
push 1
push ebx
push ebx
push ebx
push str.Some_pieces_blocking_are_invalid
push 0x5439c0
call fcn.00439540
add esp, 0x18
mov edi, 0x522c30
mov dword [esp + 0x68], edi
mov eax, dword [esp + 0x6c]
mov byte [esp + 0x348], 0xa
cmp eax, ebx
je 0x415b64
push eax
call fcn.0050b204
add esp, 4
mov esi, 0x520384
mov dword [esp + 0x24], edi
mov dword [esp + 0x68], esi
mov eax, dword [esp + 0x28]
mov byte [esp + 0x348], 0xb
cmp eax, ebx
je 0x415b8a
push eax
call fcn.0050b204
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], esi
mov byte [esp + 0x348], 2
call fcn.0050b22e
lea ecx, [esp + 0xc0]
mov byte [esp + 0x348], 1
call fcn.004db950
mov dword [esp + 0x7c], 0x5205a4
mov eax, dword [esp + 0x80]
mov dword [esp + 0x348], 0xc
cmp eax, ebx
je 0x415bda
push eax
call fcn.0050b204
add esp, 4
mov ecx, dword [esp + 0x340]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret