Function at 0x436590
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x688
mov eax, dword [esp + 0x694]
mov dword [esp + 0x684], eax
mov eax, dword [0x488bcc]
xor eax, 0xc0a1cfdb
mov dword [0x488bcc], eax
mov eax, dword [esp + 0x684]
mov ecx, eax
call fcn.0041b030
cmp eax, 0x8000
jbe 0x436c23
mov eax, 0x4853fbc4
mov cx, word [0x4819fa]
mov dx, cx
add edx, 0x58b81fdc
mov cx, word [0x486024]
mov si, cx
sub esi, edx
mov cx, si
mov word [0x486024], cx
mov cx, word [0x484b26]
mov dx, cx
and edx, 0x8979
mov cx, dx
mov word [0x484b26], cx
mov cx, word [0x4845a8]
mov dx, cx
mov esi, edx
dec esi
mov cx, si
mov word [0x4845a8], cx
imul edx, edx, 0x4e05cc36
mov esi, 0x95add477
sub esi, edx
mov cx, word [0x4835c2]
mov dx, cx
xor edx, esi
mov cx, dx
mov word [0x4835c2], cx
mov edx, dword [0x491b94]
add edx, 0xdb771ab5
mov dword [0x491b94], edx
mov edx, esp
lea esi, [esp + 0x55c]
mov dword [edx], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], esi
call fcn.004085f0
mov dword [esp + 0x558], eax
mov eax, dword [0x496c40]
xor eax, 0x16673661
mov dword [0x496c40], eax
call fcn.00416150
movzx edx, al
and edx, 3
add edx, 7
mov esi, dword [esp + 0x558]
lea esi, [esp + esi + 0x55c]
mov edi, esp
mov dword [edi + 4], edx
mov dword [edi], esi
call fcn.00424f30
mov cx, word [0x481a70]
mov dx, cx
imul edx, edx, 0x39213653
mov cx, dx
mov word [0x481a70], cx
mov edx, esp
mov dword [edx + 4], 5
mov dword [edx], 0x8ce
call fcn.0043cb40
mov dword [esp + 0x680], eax
mov cx, word [0x483cf4]
mov ax, cx
xor eax, 0xffdf
mov cx, ax
mov word [0x483cf4], cx
mov eax, dword [esp + 0x680]
mov edx, esp
mov dword [edx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [edx], eax
call fcn.004558b0
mov edx, dword [0x48f558]
mov esi, dword [esp + 0x4c]
cmp esi, edx
mov dword [esp + 0x44], eax
je 0x43675a
mov ax, word [0x481fa4]
mov cx, ax
dec ecx
mov dx, cx
mov word [0x481fa4], dx
movsx ecx, ax
mov esi, dword [0x498d80]
add esi, ecx
mov dword [0x498d80], esi
jmp 0x436781
mov eax, 0xf85b189b
mov ecx, dword [0x48dcbc]
cmp eax, ecx
jne 0x43677c
mov eax, dword [0x48a964]
xor eax, 0x44008e
mov dword [0x48a964], eax
jmp 0x436781
mov eax, 0x9f905214
mov ecx, esp
mov dword [ecx + 4], 3
mov dword [ecx], 0x14b8
mov dword [esp + 0x40], eax
call fcn.0043cb40
mov dword [esp + 0x67c], eax
mov eax, dword [0x48edcc]
dec eax
mov dword [0x48edcc], eax
imul eax, eax, 0xb01410a2
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jne 0x4367e3
mov eax, dword [0x495d8c]
dec eax
mov dword [0x495d8c], eax
mov cx, word [0x47ff3c]
mov dx, cx
or edx, eax
mov cx, dx
mov word [0x47ff3c], cx
mov eax, dword [esp + 0x680]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 5
call fcn.00448880
mov eax, dword [0x497728]
add eax, 0x59944232
and eax, 0x8fd81db9
mov ecx, dword [0x48f594]
imul ecx, eax
mov dword [0x48f594], ecx
mov eax, dword [esp + 0x67c]
mov ecx, esp
mov dword [ecx + 4], eax
lea eax, [esp + 0x55c]
mov dword [ecx], eax
call fcn.00455ade
mov dword [esp + 0x674], eax
mov eax, dword [0x48cdb0]
sar eax, 4
mov ecx, 0xd709b890
sub ecx, eax
mov dword [0x492a00], ecx
mov eax, dword [esp + 0x67c]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 3
call fcn.00448880
mov eax, dword [0x4943b8]
and eax, 0x14742ea4
mov dword [0x4943b8], eax
cmp dword [esp + 0x674], 0
je 0x436bf3
mov eax, dword [0x48b3d8]
and eax, 0x9857f8c4
mov dword [0x48b3d8], eax
mov cx, word [0x48158e]
movsx eax, cx
mov edx, dword [0x48f60c]
inc edx
mov dword [0x48f60c], edx
imul eax, edx
shl eax, 9
add eax, 0x147778b5
mov edx, dword [0x494ac8]
xor edx, 0xffffffff
xor edx, 0xd1f3b867
cmp eax, edx
jle 0x4368d9
mov eax, dword [0x48ebfc]
and eax, 0x8ff35d7e
mov dword [0x48ebfc], eax
mov eax, dword [esp + 0x674]
mov ecx, dword [esp + 0x684]
mov dword [esp + 0x3c], eax
call fcn.0041b030
mov ecx, dword [esp + 0x684]
mov dword [esp + 0x38], eax
call fcn.004504c0
mov ecx, esp
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 4], edx
mov dword [ecx], eax
mov dword [ecx + 8], 1
call fcn.00455c91
mov ecx, dword [0x48dcd0]
and ecx, 0x73affcfe
mov dword [0x48dcd0], ecx
mov ecx, dword [esp + 0x674]
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 0x34], eax
call fcn.00455d7f
mov ecx, dword [0x4887d0]
imul ecx, ecx, 0xbe611702
mov dword [0x4887d0], ecx
mov ecx, dword [esp + 0x684]
mov dword [esp + 0x30], eax
call fcn.0044ff90
mov eax, dword [0x492494]
sar eax, 5
cmp eax, 0xc06002b0
jl 0x436997
mov eax, dword [0x495554]
dec eax
mov dword [0x495554], eax
and eax, 0xe77ba9a9
mov ecx, dword [0x491afc]
xor ecx, eax
mov dword [0x491afc], ecx
mov eax, 0x845a3c74
mov byte [esp + 0x156], 0
mov cx, word [0x482c76]
movsx edx, cx
or edx, 0xdd84db7b
cmp eax, edx
jg 0x4369cb
mov eax, dword [0x49394c]
or eax, 0x4450424c
mov dword [0x49394c], eax
mov eax, dword [0x47f748]
mov ecx, esp
lea edx, [esp + 0x52]
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0x104
mov dword [ecx], 0
call eax
sub esp, 0xc
mov ecx, dword [0x488390]
add ecx, 0xfc2417cf
mov dword [0x488390], ecx
mov byte [esp + 0x557], 0
mov si, word [0x47fa6a]
mov cx, si
and ecx, 0x731d
mov si, cx
mov word [0x47fa6a], si
mov ecx, esp
mov dword [ecx + 4], 0x15
mov dword [ecx], 0x428b
mov dword [esp + 0x2c], eax
call fcn.0043cb40
mov dword [esp + 0x678], eax
mov eax, dword [0x495d94]
dec eax
mov dword [0x495d94], eax
mov ecx, dword [0x48f56c]
or ecx, 0x8eac9af0
cmp eax, ecx
jg 0x436a6c
mov eax, dword [0x4994d8]
add eax, 0x1bcd757f
mov dword [0x4994d8], eax
mov eax, dword [0x499dec]
mov ecx, dword [0x499dd4]
mov edx, dword [esp + 0x678]
mov esi, esp
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], ecx
lea eax, [esp + 0x52]
mov dword [esi + 8], eax
mov dword [esi + 4], edx
lea ecx, [esp + 0x157]
mov dword [esi], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
call fcn.00455f8f
mov ecx, dword [0x48b1a4]
dec ecx
mov dword [0x48b1a4], ecx
or ecx, 0x34619bd0
mov edx, dword [0x495044]
imul edx, ecx
mov dword [0x495044], edx
mov ecx, dword [esp + 0x678]
mov edx, esp
mov dword [edx + 4], ecx
mov dword [edx], 0x15
mov dword [esp + 0x20], eax
call fcn.00448880
mov di, word [0x483496]
mov ax, di
add eax, 0x89e07121
mov di, ax
mov word [0x483496], di
mov eax, dword [0x499dec]
mov ecx, esp
mov dword [ecx], eax
call fcn.00407370
mov ecx, dword [0x48affc]
xor ecx, 0x58000024
or ecx, 0xa1fdcf5b
mov edx, dword [0x4961cc]
and edx, ecx
mov dword [0x4961cc], edx
mov ecx, esp
mov edx, dword [esp + 0x28]
mov dword [ecx + 4], edx
lea esi, [esp + 0x55c]
mov dword [ecx], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
call fcn.00415940
mov eax, dword [0x495844]
or eax, 0x98450a7c
mov dword [0x495844], eax
mov eax, esp
mov ecx, dword [esp + 0x28]
mov dword [eax], ecx
mov dword [eax + 4], 0x401
call fcn.00420900
mov eax, dword [0x48d5e0]
and eax, 0x456af3fc
mov dword [0x48d5e0], eax
mov eax, esp
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], 0x105
call fcn.00420900
mov eax, dword [0x48a128]
and eax, 0xfcc4bb94
mov dword [0x48a128], eax
mov eax, dword [0x47f7a4]
mov ecx, esp
mov dword [ecx], 0x15f90
call eax
sub esp, 4
mov eax, dword [0x497908]
mov ecx, dword [0x48cff8]
add eax, ecx
mov ecx, dword [0x493d40]
sub ecx, eax
mov dword [0x493d40], ecx
mov eax, dword [0x47f6f4]
mov ecx, esp
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
call eax
sub esp, 4
mov ecx, dword [0x496c6c]
xor ecx, 0x23b56527
mov dword [0x493f30], ecx
mov dword [esp + 0x14], eax
mov eax, dword [0x4959fc]
add eax, 0xd9573785
mov dword [0x4959fc], eax
mov eax, esp
lea ecx, [esp + 0x55c]
mov dword [eax], ecx
mov dword [eax + 4], 0x118
call fcn.00420900
mov dword [0x48aff8], 0x3044160
mov eax, dword [0x493a38]
add eax, 0xa4e92a94
mov dword [0x48e9dc], eax
add esp, 0x688
pop esi
pop edi
ret