Function at 0x59d040
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x27b8
call fcn.008e9550
mov edx, dword [0xbe87bc]
mov eax, dword [esp + 0x27b8]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
mov eax, dword [0xbe878c]
mov dword [esp + 0x7c], eax
sub eax, 1
je 0x59e74a
mov ecx, dword [esp + 0xa4]
sar ecx, 0x1f
not ecx
add ecx, 2
mov dword [esp + 0x9c], ecx
cmp dword [0xbe87c8], 1
je 0x59e72b
mov dword [esp + 0xb4], 0
mov dword [esp + 0x78], 0
mov ebp, dword [0xbe87a0]
xor eax, eax
cmp dword [esp + 0xa4], 3
sete al
imul ecx, ebp, 0x14
lea edx, [eax*4 + 0x100]
xor eax, eax
mov dword [esp + 0x48], edx
mov edx, dword [0xbe960c]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x40], ecx
add ecx, 0xa01120
mov dword [esp + 0x5c], ecx
movzx ecx, word [ecx + 4]
movsx esi, cx
sub edx, esi
test edx, edx
mov dword [0xbe960c], edx
js 0x59d14f
test cx, cx
je 0x59d14f
mov ebx, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx edx, byte [ebx]
movzx eax, byte [ebx + 1]
shl edx, 8
or eax, edx
movzx edx, byte [ebx + 2]
shl eax, 8
or eax, edx
shl eax, cl
lea edx, [esi + ecx]
mov ecx, 0x18
sub ecx, esi
and eax, 0xffffff
shr eax, cl
mov ecx, edx
sar ecx, 3
and edx, 7
add ebx, ecx
mov dword [0xbe9608], ebx
mov dword [0xbe9604], edx
cmp dword [esp + 0x7c], 1
mov dword [esp + 0x24cc], eax
je 0x59e71e
mov eax, dword [esp + 0x5c]
movzx ecx, word [eax + 0xc]
mov eax, dword [0xbe960c]
movsx ebx, cx
xor edx, edx
sub eax, ebx
test eax, eax
mov dword [0xbe960c], eax
js 0x59d1c3
test cx, cx
je 0x59d1c3
mov edi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx edx, word [edi]
lea esi, [ebx + ecx]
rol dx, 8
movzx edx, dx
shl edx, cl
mov ecx, 0x10
sub ecx, ebx
and edx, 0xffff
shr edx, cl
mov ecx, esi
sar ecx, 3
and esi, 7
add edi, ecx
mov dword [0xbe9608], edi
mov dword [0xbe9604], esi
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x24d0], edx
jne 0x59d242
mov edi, dword [0xbe960c]
lea ebx, [esp + 0x253c]
xor ebp, ebp
mov edx, dword [0xbe9608]
mov ecx, dword [0xbe9604]
cmp dword [esp + 0x7c], ebp
jle 0x59d230
mov edi, eax
xor esi, esi
sub edi, 4
mov dword [ebx - 0x68], 0xffffffff
js 0x59d221
movzx eax, word [edx]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 4
movzx esi, ax
mov eax, ecx
sar eax, 3
and ecx, 7
shr esi, 0xc
add edx, eax
mov dword [ebx], esi
add ebp, 1
add ebx, 0xd0
mov eax, edi
jmp 0x59d1ec
mov dword [0xbe960c], edi
mov dword [0xbe9608], edx
mov dword [0xbe9604], ecx
mov edx, dword [esp + 0x40]
cmp dword [edx + 0xa01120], 0
jle 0x59e765
lea eax, [esp + 0x24cc]
mov dword [esp + 0x94], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
imul edx, dword [esp + 0xa0], 0x37
mov dword [esp + 0x60], 0
add eax, 0x40
mov dword [esp + 0x58], eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x59da27
mov ecx, dword [esp + 0x5c]
imul eax, dword [esp + 0x60], 0x68
mov edi, dword [esp + 0x94]
mov edx, dword [0xbe960c]
add ecx, 0x10
mov dword [esp + 0x54], ecx
lea ebx, [edi + eax + 0x54]
mov dword [esp + 0x40], 0
jmp 0x59d52a
lea edx, [eax - 5]
xor eax, eax
test edx, edx
mov dword [0xbe960c], edx
js 0x59d308
mov esi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [esi]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 5
mov edi, ecx
and eax, 0xffff
sar edi, 3
and ecx, 7
add esi, edi
shr eax, 0xb
mov dword [0xbe9608], esi
mov dword [0xbe9604], ecx
sub edx, 5
mov dword [ebx - 0x34], eax
xor eax, eax
test edx, edx
mov dword [0xbe960c], edx
js 0x59d353
mov esi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [esi]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 5
mov edi, ecx
and eax, 0xffff
sar edi, 3
and ecx, 7
add esi, edi
shr eax, 0xb
mov dword [0xbe9608], esi
mov dword [0xbe9604], ecx
sub edx, 5
mov dword [ebx - 0x30], eax
xor eax, eax
test edx, edx
mov dword [0xbe960c], edx
js 0x59d39e
mov esi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [esi]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 5
mov edi, ecx
and eax, 0xffff
sar edi, 3
and ecx, 7
add esi, edi
shr eax, 0xb
mov dword [0xbe9608], esi
mov dword [0xbe9604], ecx
sub edx, 4
mov esi, 1
mov dword [ebx - 0x2c], eax
xor eax, eax
test edx, edx
mov dword [0xbe960c], edx
js 0x59d3f1
mov esi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [esi]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 4
mov edi, ecx
and eax, 0xffff
sar edi, 3
and ecx, 7
add esi, edi
shr eax, 0xc
mov dword [0xbe9608], esi
lea esi, [eax + 1]
mov dword [0xbe9604], ecx
sub edx, 3
test edx, edx
mov dword [0xbe960c], edx
js 0x59d9d2
mov ecx, dword [0xbe9608]
movzx edi, word [ecx]
mov ecx, dword [0xbe9604]
rol di, 8
movzx edi, di
shl edi, cl
add ecx, 3
mov ebp, ecx
and ecx, 7
mov dword [0xbe9604], ecx
mov ecx, dword [esp + 0x50]
and edi, 0xffff
sar ebp, 3
shr edi, 0xd
add ebp, dword [0xbe9608]
add eax, edi
add ecx, esi
movzx ecx, word [ecx + ecx + 0xa00d40]
mov dword [0xbe9608], ebp
shr cx, 1
cmp eax, 0x14
movzx ecx, cx
mov dword [ebx - 8], ecx
jle 0x59d9eb
mov dword [ebx - 4], 0x120
mov ecx, dword [esp + 0x4c]
mov dword [ebx - 0x3c], 0
mov dword [ebx - 0x38], 0
test ecx, ecx
je 0x59d988
mov edx, dword [0xbe960c]
sub edx, 1
xor esi, esi
test edx, edx
mov dword [0xbe960c], edx
js 0x59d4ca
mov eax, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx esi, byte [eax]
shl esi, cl
add ecx, 1
mov edi, ecx
and ecx, 7
mov dword [0xbe9604], ecx
mov ecx, esi
sar edi, 3
shr cl, 7
add eax, edi
mov esi, ecx
mov dword [0xbe9608], eax
and esi, 1
sub edx, 1
mov dword [ebx + 4], esi
xor esi, esi
test edx, edx
mov dword [0xbe960c], edx
js 0x59d50e
mov eax, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx esi, byte [eax]
shl esi, cl
add ecx, 1
mov edi, ecx
and ecx, 7
sar edi, 3
add eax, edi
mov dword [0xbe9608], eax
mov eax, esi
shr al, 7
mov esi, eax
mov dword [0xbe9604], ecx
and esi, 1
add dword [esp + 0x40], 1
mov ecx, dword [esp + 0x40]
mov dword [ebx + 8], esi
add ebx, 0xd0
cmp dword [esp + 0x7c], ecx
jle 0x59da27
sub edx, 0xc
xor eax, eax
test edx, edx
mov dword [0xbe960c], edx
js 0x59d57d
mov esi, dword [0xbe9608]
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
mov ecx, dword [0xbe9604]
shl eax, cl
add ecx, 0xc
mov edi, ecx
and eax, 0xffffff
sar edi, 3
and ecx, 7
add esi, edi
shr eax, 0xc
mov dword [0xbe9608], esi
mov dword [0xbe9604], ecx
sub edx, 9
test edx, edx
mov dword [ebx - 0x48], eax
mov dword [0xbe960c], edx
js 0x59da0f
mov esi, dword [0xbe9608]
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
mov ecx, dword [0xbe9604]
shl eax, cl
add ecx, 9
and eax, 0xffffff
mov edi, ecx
shr eax, 0xf
and ecx, 7
sar edi, 3
add esi, edi
cmp eax, 0x120
mov dword [0xbe9608], esi
mov dword [0xbe9604], ecx
mov dword [ebx - 0x44], eax
jbe 0x59d610
mov edi, dword [esp + 0x58]
mov dword [esp + 8], 0x16
mov dword [esp + 4], 1
mov dword [esp], str.big_values_too_large__n
mov dword [esp + 0xc], edi
call sub.msvcrt.dll_fwrite
mov edx, dword [0xbe960c]
mov dword [ebx - 0x44], 0x120
lea eax, [edx - 8]
xor edx, edx
test eax, eax
mov dword [0xbe960c], eax
js 0x59d652
mov esi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx edx, word [esi]
rol dx, 8
movzx edx, dx
shl edx, cl
add ecx, 8
mov edi, ecx
and ecx, 7
sar edi, 3
movzx edx, dh
add esi, edi
mov dword [0xbe9608], esi
mov dword [0xbe9604], ecx
mov ebp, dword [esp + 0x48]
mov edi, dword [esp + 0x78]
sub ebp, edx
lea edx, [ebp*4 + 0xbeb220]
test edi, edi
mov dword [ebx + 0x18], edx
je 0x59d670
add edx, 8
mov dword [ebx + 0x18], edx
mov edx, dword [esp + 0x54]
mov esi, eax
xor eax, eax
movzx ecx, word [edx]
movsx edx, cx
sub esi, edx
test esi, esi
mov dword [0xbe960c], esi
js 0x59d6da
test cx, cx
je 0x59d6da
mov esi, dword [0xbe9608]
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 2]
shl eax, 8
or eax, ecx
mov ecx, dword [0xbe9604]
lea edi, [edx + ecx]
shl eax, cl
mov ecx, 0x18
sub ecx, edx
mov edx, edi
sar edx, 3
and eax, 0xffffff
lea edx, [esi + edx]
and edi, 7
shr eax, cl
mov dword [0xbe9608], edx
mov dword [0xbe9604], edi
mov esi, dword [0xbe960c]
mov dword [ebx - 0x40], eax
lea eax, [esi - 1]
test eax, eax
mov dword [0xbe960c], eax
js 0x59d2c0
mov edx, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx edi, byte [edx]
shl edi, cl
add ecx, 1
mov ebp, ecx
and ecx, 7
sar ebp, 3
lea ebp, [edx + ebp]
mov edx, edi
test dl, dl
mov dword [0xbe9608], ebp
mov dword [0xbe9604], ecx
jns 0x59d2c0
sub esi, 3
xor eax, eax
test esi, esi
mov dword [0xbe960c], esi
js 0x59d767
movzx eax, word [ebp]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 2
mov edi, ecx
and eax, 0xffff
sar edi, 3
and ecx, 7
lea edx, [ebp + edi]
shr eax, 0xe
mov dword [0xbe9608], edx
mov dword [0xbe9604], ecx
sub esi, 1
mov dword [ebx - 0x3c], eax
xor eax, eax
test esi, esi
mov dword [0xbe960c], esi
js 0x59d7a9
mov eax, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx edx, byte [eax]
shl edx, cl
add ecx, 1
mov edi, ecx
and ecx, 7
sar edi, 3
add eax, edi
shr dl, 7
mov dword [0xbe9608], eax
mov eax, edx
mov dword [0xbe9604], ecx
and eax, 1
sub esi, 5
mov dword [ebx - 0x38], eax
xor eax, eax
test esi, esi
mov dword [0xbe960c], esi
js 0x59d7f4
mov edx, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [edx]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 5
mov edi, ecx
and eax, 0xffff
sar edi, 3
and ecx, 7
add edx, edi
shr eax, 0xb
mov dword [0xbe9608], edx
mov dword [0xbe9604], ecx
sub esi, 5
mov dword [ebx - 0x34], eax
xor eax, eax
test esi, esi
mov dword [0xbe960c], esi
js 0x59d83f
mov edx, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [edx]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 5
mov edi, ecx
and eax, 0xffff
sar edi, 3
and ecx, 7
add edx, edi
shr eax, 0xb
mov dword [0xbe9608], edx
mov dword [0xbe9604], ecx
sub esi, 3
mov edx, dword [ebx + 0x18]
mov dword [ebx - 0x30], eax
xor eax, eax
test esi, esi
mov dword [ebx - 0x2c], 0
mov dword [0xbe960c], esi
js 0x59d894
mov edi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [edi]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 3
mov ebp, ecx
and ecx, 7
sar ebp, 3
add edi, ebp
shr eax, 8
mov dword [0xbe9608], edi
and eax, 0xe0
mov dword [0xbe9604], ecx
lea eax, [edx + eax]
sub esi, 3
mov dword [ebx + 0xc], eax
xor eax, eax
test esi, esi
mov dword [0xbe960c], esi
js 0x59d8e2
mov edi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [edi]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 3
mov ebp, ecx
and ecx, 7
sar ebp, 3
add edi, ebp
shr eax, 8
mov dword [0xbe9608], edi
and eax, 0xe0
mov dword [0xbe9604], ecx
lea eax, [edx + eax]
sub esi, 3
mov dword [ebx + 0x10], eax
xor eax, eax
test esi, esi
mov dword [0xbe960c], esi
js 0x59d930
mov esi, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx eax, word [esi]
rol ax, 8
movzx eax, ax
shl eax, cl
add ecx, 3
mov edi, ecx
and ecx, 7
sar edi, 3
add esi, edi
shr eax, 8
mov dword [0xbe9608], esi
and eax, 0xe0
mov dword [0xbe9604], ecx
lea eax, [edx + eax]
mov dword [ebx + 0x14], eax
mov eax, dword [ebx - 0x3c]
test eax, eax
je 0x59df80
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x59da1b
cmp eax, 2
je 0x59da1b
xor eax, eax
cmp dword [esp + 0xa0], 8
sete al
sub eax, 1
and eax, 0xffffffe5
add eax, 0x36
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x4c]
mov dword [ebx - 4], 0x120
mov edx, dword [0xbe960c]
test ecx, ecx
jne 0x59d483
sub edx, 1
xor eax, eax
test edx, edx
mov dword [0xbe960c], edx
js 0x59d9cb
mov eax, dword [0xbe9608]
mov ecx, dword [0xbe9604]
movzx esi, byte [eax]
shl esi, cl
add ecx, 1
mov edi, ecx
and ecx, 7
sar edi, 3
add eax, edi
mov dword [0xbe9608], eax
mov eax, esi
shr al, 7
mov esi, eax
mov eax, esi
mov dword [0xbe9604], ecx
and eax, 1
mov dword [ebx], eax
jmp 0x59d489
mov eax, dword [esp + 0x50]
xor edi, edi
add eax, esi
movzx eax, word [eax + eax + 0xa00d40]
shr ax, 1
movzx eax, ax
mov dword [ebx - 8], eax
add esi, dword [esp + 0x50]
mov edx, dword [0xbe960c]
lea eax, [edi + esi + 1]
movzx eax, word [eax + eax + 0xa00d40]
shr ax, 1
movzx eax, ax
mov dword [ebx - 4], eax
jmp 0x59d469
mov dword [ebx - 0x44], 0
jmp 0x59d610
mov dword [ebx - 8], 0x12
jmp 0x59d96f
mov edi, dword [esp + 0x5c]
add dword [esp + 0x60], 1
mov ebp, dword [esp + 0x60]
cmp ebp, dword [edi]
jl 0x59d281
mov ebx, dword [esp + 0x24cc]
mov eax, dword [0xbe87ec]
sub eax, ebx
add eax, dword [0x913cf8]
test ebx, ebx
mov dword [0xbe9608], eax
je 0x59da77
mov edx, dword [0xbe87e8]
mov dword [esp + 8], ebx
mov dword [esp], eax
sub edx, ebx
add edx, dword [0x913cfc]
mov dword [esp + 4], edx
call fcn.0054af80
shl ebx, 3
mov eax, dword [esp + 0xb4]
add dword [0xbe960c], ebx
cmp dword [0xbe87a0], 1
lea edi, [esp + 0x9c0]
mov dword [0xbe9604], 0
lea ebx, [esp + 0x12c0]
sbb ebp, ebp
not ebp
or eax, dword [esp + 0x78]
add ebp, 2
cmp dword [esp + 0xa4], 3
mov dword [esp + 0xac], ebp
lea esi, [esp + 0x1bc0]
mov dword [esp + 0x88], 0
sete byte [esp + 0xbb]
imul edx, dword [esp + 0xa0], 0x37
imul ecx, dword [esp + 0xa0], 0x6e
or byte [esp + 0xbb], al
lea eax, [esp + 0x25e4]
mov dword [esp + 0x90], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0xbc], edx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x2c], edi
imul eax, dword [esp + 0x98], 0x68
mov ebp, dword [esp + 0x94]
lea edi, [ebp + eax + 8]
mov ebp, dword [0xbe87a0]
test ebp, ebp
je 0x59e1d2
xor ecx, ecx
mov edx, edi
lea eax, [esp + 0x2674]
call fcn.00598b10
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov ecx, edi
lea edx, [esp + 0x2674]
mov dword [esp], eax
mov eax, ebx
call fcn.0059bcf0
test eax, eax
jne 0x59dfb3
cmp dword [esp + 0x7c], 2
je 0x59e26f
imul eax, dword [esp + 0x98], 0x68
mov edx, dword [esp + 0x94]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x8c], 0
mov dword [esp + 0x80], 0
lea edx, [edx + eax + 0x18]
mov dword [esp + 0x84], edx
mov dword [esp + 0xb0], eax
imul eax, dword [esp + 0x80], 0xd0
mov ebp, dword [esp + 0x94]
add eax, dword [esp + 0xb0]
lea eax, [ebp + eax + 8]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [eax]
cmp ecx, 2
je 0x59e1b6
mov edx, dword [eax + 0x30]
sub edx, 1
je 0x59ddd2
mov eax, dword [esp + 0x54]
add eax, 0x48
fld dword [0xbf4e00]
fld dword [0xbf4e20]
fld dword [0xbf4e04]
fld dword [0xbf4e24]
fld dword [0xbf4e08]
fstp dword [esp + 0x60]
fld dword [0xbf4e28]
fstp dword [esp + 0x64]
fld dword [0xbf4e0c]
fstp dword [esp + 0x68]
fld dword [0xbf4e2c]
fstp dword [esp + 0x70]
fld dword [0xbf4e10]
fstp dword [esp + 0x6c]
fld dword [0xbf4e30]
fstp dword [esp + 0x40]
fld dword [0xbf4e14]
fstp dword [esp + 0x44]
fld dword [0xbf4e34]
fstp dword [esp + 0x4c]
fld dword [0xbf4e18]
fstp dword [esp + 0x48]
fld dword [0xbf4e38]
fstp dword [esp + 0x50]
fld dword [0xbf4e1c]
fstp dword [esp + 0x58]
fld dword [0xbf4e3c]
fstp dword [esp + 0x5c]
nop
fld dword [eax - 4]
fld dword [eax]
fld st(1)
fmul st(6)
fld st(1)
fmul st(6)
fsubp st(1)
fstp dword [eax - 4]
fxch st(1)
fmul st(4)
fxch st(1)
fmul st(5)
faddp st(1)
fstp dword [eax]
fld dword [eax - 8]
fld dword [eax + 4]
fld st(1)
fmul st(4)
fld st(1)
fmul st(4)
fsubp st(1)
fstp dword [eax - 8]
fxch st(1)
fmul st(2)
fxch st(1)
fmul st(3)
faddp st(1)
fstp dword [eax + 4]
fld dword [eax - 0xc]
fld dword [eax + 8]
fld dword [esp + 0x60]
fmul st(2)
fld dword [esp + 0x64]
fmul st(2)
fsubp st(1)
fstp dword [eax - 0xc]
fxch st(1)
fmul dword [esp + 0x64]
fxch st(1)
fmul dword [esp + 0x60]
faddp st(1)
fstp dword [eax + 8]
fld dword [eax - 0x10]
fld dword [eax + 0xc]
fld dword [esp + 0x68]
fmul st(2)
fld dword [esp + 0x70]
fmul st(2)
fsubp st(1)
fstp dword [eax - 0x10]
fxch st(1)
fmul dword [esp + 0x70]
fxch st(1)
fmul dword [esp + 0x68]
faddp st(1)
fstp dword [eax + 0xc]
fld dword [eax - 0x14]
fld dword [eax + 0x10]
fld dword [esp + 0x6c]
fmul st(2)
fld dword [esp + 0x40]
fmul st(2)
fsubp st(1)
fstp dword [eax - 0x14]
fxch st(1)
fmul dword [esp + 0x40]
fxch st(1)
fmul dword [esp + 0x6c]
faddp st(1)
fstp dword [eax + 0x10]
fld dword [eax - 0x18]
fld dword [eax + 0x14]
fld dword [esp + 0x44]
fmul st(2)
fld dword [esp + 0x4c]
fmul st(2)
fsubp st(1)
fstp dword [eax - 0x18]
fxch st(1)
fmul dword [esp + 0x4c]
fxch st(1)
fmul dword [esp + 0x44]
faddp st(1)
fstp dword [eax + 0x14]
fld dword [eax - 0x1c]
fld dword [eax + 0x18]
fld dword [esp + 0x48]
fmul st(2)
fld dword [esp + 0x50]
fmul st(2)
fsubp st(1)
fstp dword [eax - 0x1c]
fxch st(1)
fmul dword [esp + 0x50]
fxch st(1)
fmul dword [esp + 0x48]
faddp st(1)
fstp dword [eax + 0x18]
fld dword [eax - 0x20]
fld dword [eax + 0x1c]
fld dword [esp + 0x58]
fmul st(2)
fld dword [esp + 0x5c]
fmul st(2)
fsubp st(1)
fstp dword [eax - 0x20]
fxch st(1)
fmul dword [esp + 0x5c]
fxch st(1)
fmul dword [esp + 0x58]
faddp st(1)
fstp dword [eax + 0x1c]
add eax, 0x48
sub edx, 1
jne 0x59dc90
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
mov edi, dword [esp + 0x80]
lea ebp, [esp + 0xc0]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x4c], 0
mov edx, dword [edi*4 + 0xbf52e0]
add eax, ebp
mov ebp, dword [esp + 0x8c]
mov dword [esp + 0x50], eax
lea eax, [edx + edx*8]
shl eax, 9
lea eax, [ebp + eax + 0xbf5300]
mov dword [esp + 0x44], eax
mov eax, 1
sub eax, edx
mov dword [edi*4 + 0xbf52e0], eax
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x84]
shl edx, 9
xor edi, edi
lea edx, [ebp + edx + 0xbf5300]
mov dword [esp + 0x40], edx
mov eax, dword [eax + 4]
test eax, eax
jne 0x59e110
cmp ecx, 2
je 0x59e075
mov ebp, dword [esp + 0x84]
cmp edi, dword [ebp + 0x30]
jae 0x59df2d
lea eax, [ecx + ecx*8]
mov edx, dword [esp + 0x4c]
shl eax, 4
lea ebp, [eax + 0xbf4e60]
add eax, 0xbf50a0
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], eax
lea eax, [edi + edi*8]
lea eax, [ecx + eax*8]
mov dword [esp], eax
call dword [0xbf4e40]
lea eax, [ebp + 4]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
add ebp, 8
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
add eax, 0x48
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
add eax, 0x48
mov dword [esp + 4], eax
lea eax, [edi + edi*8 + 9]
lea eax, [ecx + eax*8]
mov dword [esp], eax
call dword [0xbf4e40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x74]
add dword [esp + 0x44], 0x90
add dword [esp + 0x40], 0x90
add edx, 2
cmp edx, dword [eax + 0x40]
mov edi, edx
jb 0x59de85
mov dword [esp + 0x4c], edx
cmp dword [esp + 0x4c], 0x1f
mov dword [esp + 0x50], ebp
jg 0x59dfc5
mov dword [esp + 0x48], 0
mov ebp, dword [esp + 0x40]
xor eax, eax
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
add ebp, dword [esp + 0x48]
add edi, dword [esp + 0x48]
nop
lea esi, [esi]
mov ecx, dword [edi + eax*4]
mov dword [edx], ecx
sub edx, 0xffffff80
mov dword [ebp + eax*4], 0
add eax, 1
cmp eax, 0x12
jne 0x59df50
add dword [esp + 0x4c], 1
add dword [esp + 0x48], 0x48
cmp dword [esp + 0x4c], 0x20
je 0x59dfc5
add dword [esp + 0x50], 4
jmp 0x59df35
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x36
mov dword [esp + 4], 1
mov dword [esp], str.Blocktype__0_and_window_switching__1_not_allowed._n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x88]
add esp, 0x27bc
pop ebx
pop esi
pop edi
pop ebp
ret
add dword [esp + 0x80], 1
mov edx, dword [esp + 0x9c]
add dword [esp + 0x84], 0xd0
add dword [esp + 0x8c], 0x900
add dword [esp + 0x54], 0x900
cmp dword [esp + 0x80], edx
jl 0x59dbb9
mov ebp, dword [esp + 0xa4]
test ebp, ebp
js 0x59e1e5
mov ebp, dword [esp + 0x88]
mov edi, dword [esp + 0x58]
lea esi, [esi]
mov eax, dword [0xbe87e0]
mov dword [esp], edi
sub edi, 0xffffff80
mov dword [esp + 8], 0xbe87e4
mov dword [esp + 4], eax
call dword [0xbe8788]
add ebp, eax
cmp edi, dword [esp + 0x2c]
jne 0x59e020
mov dword [esp + 0x88], ebp
add dword [esp + 0x98], 1
mov edi, dword [esp + 0xac]
add dword [esp + 0x90], 0x68
cmp dword [esp + 0x98], edi
jl 0x59db1c
jmp 0x59dfb3
mov eax, dword [esp + 0x84]
cmp edi, dword [eax + 0x30]
jae 0x59df2d
mov ebp, dword [esp + 0x50]
lea esi, [esi]
mov edx, dword [esp + 0x54]
lea eax, [edi + edi*8]
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ebp
mov dword [esp], 0xbf4f80
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x44]
call fcn.005982a0
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
mov dword [esp], 0xbf51c0
add eax, 0x48
mov dword [esp + 0x48], eax
lea eax, [edi + edi*8 + 9]
lea eax, [edx + eax*8]
add ecx, 0x48
lea edx, [ebp + 4]
add ebp, 8
mov dword [esp + 4], edx
mov edx, dword [esp + 0x48]
call fcn.005982a0
mov ecx, dword [esp + 0x74]
add dword [esp + 0x4c], 2
mov edi, dword [esp + 0x4c]
add dword [esp + 0x44], 0x90
add dword [esp + 0x40], 0x90
cmp dword [ecx + 0x40], edi
ja 0x59e090
jmp 0x59df1e
mov ecx, edx
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x50]
mov ebp, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0xbf4e60
mov dword [esp], ebp
call dword [0xbf4e40]
lea eax, [esp + 0xc4]
add eax, dword [esp + 0x8c]
mov dword [esp + 0xc], 0xbf50a0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
add eax, 0x48
mov dword [esp + 8], eax
mov eax, edi
add edi, 0x90
add eax, 0x48
mov dword [esp + 4], eax
mov eax, ebp
add eax, 0x48
mov dword [esp], eax
call dword [0xbf4e40]
mov edx, dword [esp + 0x84]
lea eax, [esp + 0xc8]
add eax, dword [esp + 0x8c]
mov dword [esp + 0x44], edi
mov edi, 2
add dword [esp + 0x40], 0x90
mov ecx, dword [edx]
mov dword [esp + 0x50], eax
mov dword [esp + 0x4c], 2
jmp 0x59de4b
mov edx, dword [eax + 4]
test edx, edx
je 0x59ddd2
mov eax, dword [esp + 0x54]
mov edx, 1
add eax, 0x48
jmp 0x59dbff
mov edx, edi
lea eax, [esp + 0x2674]
call fcn.00598cf0
jmp 0x59db4d
lea edi, [esp + 0x9c0]
mov ebp, dword [esp + 0x58]
mov edx, edi
jmp 0x59e1fa
lea edx, [ebp + 0x900]
mov eax, dword [0xbe87e4]
lea ecx, [esp + 0x27ac]
mov dword [esp + 0xc], ecx
mov dword [esp], ebp
sub ebp, 0xffffff80
mov dword [esp + 0x3c], edx
mov dword [esp + 0x27ac], eax
mov eax, dword [0xbe87e0]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
call dword [0xbe8784]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc], 0xbe87e4
mov dword [esp + 4], 1
mov dword [esp], edx
mov edi, eax
mov eax, dword [0xbe87e0]
mov dword [esp + 8], eax
call dword [0xbe8784]
lea eax, [edi + eax]
add dword [esp + 0x88], eax
cmp ebp, dword [esp + 0x2c]
jne 0x59e1f4
jmp 0x59e04c
imul eax, dword [esp + 0x98], 0x68
mov edx, dword [esp + 0x94]
cmp dword [0xbe87a0], 0
lea ebp, [edx + eax + 0xd8]
je 0x59e3a1
lea ecx, [esp + 0x2674]
mov edx, ebp
add ecx, 0x9c
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xb4]
mov eax, dword [esp + 0x44]
call fcn.00598b10
mov dword [esp + 4], eax
mov eax, dword [esp + 0xa0]
mov ecx, ebp
mov edx, dword [esp + 0x44]
mov dword [esp], eax
mov eax, esi
call fcn.0059bcf0
test eax, eax
jne 0x59dfb3
cmp dword [esp + 0x78], 0
je 0x59e31e
mov edx, dword [esp + 0x90]
mov eax, dword [edx - 0xd0]
mov edx, dword [edx]
cmp eax, edx
jb 0x59e2f4
mov edx, eax
imul edx, edx, 0x12
test edx, edx
jle 0x59e31e
xor eax, eax
fld dword [ebx + eax*4]
fld dword [ebx + eax*4 + 0x900]
fld st(0)
fadd st(2)
fstp dword [ebx + eax*4]
fsubp st(1)
fstp dword [ebx + eax*4 + 0x900]
add eax, 1
cmp eax, edx
jne 0x59e2fd
cmp dword [esp + 0xb4], 0
je 0x59e331
jmp 0x59e3c0
fstp st(0)
fstp st(0)
cmp byte [esp + 0xbb], 0
je 0x59e358
mov edi, dword [esp + 0x90]
mov edx, dword [edi]
mov eax, dword [edi - 0xd0]
cmp edx, eax
jbe 0x59e4fa
mov dword [edi - 0xd0], edx
cmp dword [esp + 0xa4], 1
je 0x59e509
cmp dword [esp + 0xa4], 3
jne 0x59db7e
mov ecx, dword [esp + 0x90]
imul edx, dword [ecx], 0x12
test edx, edx
je 0x59db7e
xor eax, eax
fld dword [ebx + eax*4 + 0x900]
fadd dword [ebx + eax*4]
fstp dword [ebx + eax*4]
add eax, 1
cmp eax, edx
jne 0x59e388
jmp 0x59db7e
lea edi, [esp + 0x2674]
mov edx, ebp
add edi, 0x9c
mov eax, edi
mov dword [esp + 0x44], edi
call fcn.00598cf0
jmp 0x59e2b5
mov edx, dword [0xbe87a0]
mov edi, dword [esp + 0x90]
mov eax, edx
and eax, dword [edi - 0x34]
add eax, edx
mov edx, dword [esp + 0x78]
cmp dword [edi - 0x30], 2
lea eax, [edx + eax*2]
mov ecx, dword [eax*8 + 0xa012a0]
mov eax, dword [eax*8 + 0xa012a4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
je 0x59e533
mov edi, dword [esp + 0x90]
mov eax, dword [esp + 0xbc]
mov edx, dword [edi - 4]
add eax, edx
cmp edx, 0x15
movzx eax, word [eax + eax + 0xa00d40]
jg 0x59e331
movzx eax, ax
je 0x59e493
mov ebp, dword [esp + 0xa8]
lea ecx, [edx + ebp + 0xa00d6e]
movzx edi, byte [ecx]
mov dword [esp + 0x40], edi
mov edi, dword [esp + edx*4 + 0x2710]
cmp edi, 7
je 0x59e4f4
mov ebp, dword [esp + 0x4c]
fld dword [ebp + edi*4]
mov ebp, dword [esp + 0x48]
fld dword [ebp + edi*4]
mov edi, dword [esp + 0x40]
test edi, edi
je 0x59e484
mov ebp, dword [esp + 0x40]
lea ebp, [eax + ebp]
fld dword [ebx + eax*4]
fld st(2)
fmul st(1)
fstp dword [ebx + eax*4]
fmul st(1)
fstp dword [esi + eax*4]
add eax, 1
cmp eax, ebp
jne 0x59e468
fstp st(0)
fstp st(0)
jmp 0x59e488
fstp st(0)
fstp st(0)
add edx, 1
add ecx, 1
cmp edx, 0x15
jne 0x59e432
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 0x50]
cmp edx, 7
je 0x59e331
mov edi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0xa8]
fld dword [edi + edx*4]
fld dword [ebp + edx*4]
movzx edx, byte [ecx + 0xa00d83]
test dl, dl
je 0x59e32d
movzx edx, dl
lea ecx, [esp + 0x1bc0]
lea edx, [eax + edx]
fld dword [ebx + eax*4]
fld st(2)
fmul st(1)
fstp dword [ebx + eax*4]
fmul st(1)
fstp dword [ecx + eax*4]
add eax, 1
cmp eax, edx
jne 0x59e4d5
fstp st(0)
fstp st(0)
jmp 0x59e331
add eax, dword [esp + 0x40]
jmp 0x59e488
mov ebp, dword [esp + 0x90]
mov dword [ebp], eax
jmp 0x59e358
mov edi, dword [esp + 0x90]
imul edx, dword [edi], 0x12
test edx, edx
je 0x59db7e
xor eax, eax
mov ecx, dword [ebx + eax*4 + 0x900]
mov dword [ebx + eax*4], ecx
add eax, 1
cmp eax, edx
jne 0x59e51d
jmp 0x59db7e
xor eax, eax
cmp dword [edi - 0x2c], 0
setne al
xor edi, edi
mov dword [esp + 0x50], eax
mov ecx, dword [ebp + edi*4 + 0x30]
cmp ecx, 3
jle 0x59e55c
cmp ecx, 0xb
mov dword [esp + 0x50], 0
jg 0x59e602
mov edx, 0x27
sub edx, dword [ebp + 0x14]
lea eax, [ecx + ecx*2]
lea eax, [edi + eax]
lea eax, [edx + eax]
lea eax, [esp + eax*4 + 0x2674]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
cmp eax, 7
je 0x59e5f1
mov edx, dword [esp + 0xa8]
movzx edx, byte [edx + ecx + 0xa00da0]
mov byte [esp + 0x58], dl
mov edx, dword [esp + 0xa8]
cmp byte [esp + 0x58], 0
movzx edx, word [edx + ecx*2 + 0xa00d84]
mov word [esp + 0x54], dx
mov edx, dword [esp + 0x4c]
fld dword [edx + eax*4]
mov edx, dword [esp + 0x48]
fld dword [edx + eax*4]
je 0x59e5ed
movzx eax, word [esp + 0x54]
movzx edx, byte [esp + 0x58]
add eax, edi
lea edx, [edx + edx*2]
lea edx, [eax + edx]
fld dword [ebx + eax*4]
fld st(2)
fmul st(1)
fstp dword [ebx + eax*4]
fmul st(1)
fstp dword [esi + eax*4]
add eax, 3
cmp eax, edx
jne 0x59e5d1
fstp st(0)
fstp st(0)
jmp 0x59e5f1
fstp st(0)
fstp st(0)
add ecx, 1
add dword [esp + 0x40], 0xc
cmp ecx, 0xc
jne 0x59e578
mov ecx, dword [esp + 0x44]
mov eax, edi
sub eax, dword [ebp + 0x14]
mov eax, dword [ecx + eax*4 + 0x84]
mov ecx, dword [esp + 0xa8]
cmp eax, 7
movzx edx, byte [ecx + 0xa00dac]
movzx ecx, word [ecx + 0xa00d9c]
mov word [esp + 0x40], cx
je 0x59e674
mov ecx, dword [esp + 0x4c]
test dl, dl
fld dword [ecx + eax*4]
mov ecx, dword [esp + 0x48]
fld dword [ecx + eax*4]
je 0x59e670
movzx eax, word [esp + 0x40]
movzx edx, dl
lea edx, [edx + edx*2]
lea eax, [edi + eax]
lea edx, [eax + edx]
fld dword [ebx + eax*4]
fld st(2)
fmul st(1)
fstp dword [ebx + eax*4]
fmul st(1)
fstp dword [esi + eax*4]
add eax, 3
cmp eax, edx
jne 0x59e654
fstp st(0)
fstp st(0)
jmp 0x59e674
fstp st(0)
fstp st(0)
add edi, 1
cmp edi, 3
jne 0x59e542
cmp dword [esp + 0x50], 0
je 0x59e331
mov edi, dword [esp + 0x90]
mov edx, dword [esp + 0xbc]
mov ecx, dword [esp + 0xa8]
mov eax, dword [edi - 4]
add edx, eax
movzx edx, word [edx + edx + 0xa00d40]
lea ebp, [eax + ecx + 0xa00d6e]
cmp eax, 7
jg 0x59e331
movzx edi, byte [ebp]
mov dword [esp + 0x40], edi
mov edi, dword [esp + eax*4 + 0x2710]
cmp edi, 7
je 0x59e718
mov ecx, dword [esp + 0x4c]
cmp dword [esp + 0x40], 0
fld dword [ecx + edi*4]
mov ecx, dword [esp + 0x48]
fld dword [ecx + edi*4]
je 0x59e70c
mov ecx, dword [esp + 0x40]
lea ecx, [edx + ecx]
lea esi, [esi]
fld dword [ebx + edx*4]
fld st(2)
fmul st(1)
fstp dword [ebx + edx*4]
fmul st(1)
fstp dword [esi + edx*4]
add edx, 1
cmp edx, ecx
jne 0x59e6f0
fstp st(0)
fstp st(0)
jmp 0x59e710
fstp st(0)
fstp st(0)
add eax, 1
add ebp, 1
jmp 0x59e6b4
add edx, dword [esp + 0x40]
jmp 0x59e710
mov ebp, dword [esp + 0x5c]
movzx ecx, word [ebp + 8]
jmp 0x59d169
mov eax, dword [0xbe87cc]
mov edi, eax
and eax, 1
and edi, 2
sar edi, 1
mov dword [esp + 0x78], edi
mov dword [esp + 0xb4], eax
jmp 0x59d0b2
mov dword [esp + 0x9c], 1
mov dword [esp + 0xa4], 0
jmp 0x59d092
lea ecx, [esp + 0x24cc]
mov dword [esp + 0x94], ecx
jmp 0x59da3c