Function at 0x405340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, 4
imul ecx, eax, 0x268
mov edx, dword [ecx + 0x48d680]
and edx, 0x65163b98
mov eax, 2
imul ecx, eax, 0x222
mov word [ecx + 0x48ed48], dx
mov ecx, dword [ebp + 8]
call fcn.00412370
cmp eax, 0x8000
jbe 0x405e2c
mov edx, 2
imul eax, edx, 0x3e8
movsx ecx, word [eax + 0x48ed48]
or ecx, 0xc666aa1a
mov edx, 4
imul eax, edx, 0x492
mov dword [eax + 0x48d680], ecx
mov ecx, 2
imul edx, ecx, 0x3e8
mov ax, word [edx + 0x48ed48]
sub ax, 1
mov ecx, 2
imul edx, ecx, 0x3e8
mov word [edx + 0x48ed48], ax
mov eax, 4
imul ecx, eax, 0x27e
cmp dword [ecx + 0x48d680], 0x26dae522
jge 0x405402
mov edx, 4
imul eax, edx, 0x172
mov dword [eax + 0x48d680], 0x5a4a28ea
mov ecx, 2
imul edx, ecx, 0x179
movsx eax, word [edx + 0x48ed48]
add eax, 0x21448980
mov ecx, 2
imul edx, ecx, 0x179
mov word [edx + 0x48ed48], ax
mov eax, 4
imul ecx, eax, 0x475
mov edx, dword [ecx + 0x48d680]
and edx, 0xc79c736c
or edx, 0xdfe43f46
mov eax, 2
imul ecx, eax, 0xfb
mov word [ecx + 0x48ed48], dx
lea edx, [ebp - 0x150]
push edx
call fcn.00401ae0
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, 4
imul ecx, eax, 0x3cd
mov edx, dword [ecx + 0x48d680]
add edx, 0x3eecb87a
and edx, 0x29ff8287
mov dword [ebp - 0x30], edx
mov eax, 4
imul ecx, eax, 0x3cd
mov edx, dword [ecx + 0x48d680]
add edx, 1
mov eax, 4
imul ecx, eax, 0x3cd
mov dword [ecx + 0x48d680], edx
cmp dword [ebp - 0x30], 0xaf47999b
jg 0x4054f6
mov edx, 4
imul eax, edx, 0x543
mov ecx, 4
imul edx, ecx, 0x3c4
mov ecx, dword [edx + 0x48d680]
sub ecx, 0x68d61a1a
mov edx, dword [eax + 0x48d680]
imul edx, ecx
mov eax, 4
imul ecx, eax, 0x543
mov dword [ecx + 0x48d680], edx
call fcn.00441490
movzx edx, al
and edx, 0x80000003
jns 0x40550b
dec edx
or edx, 0xfffffffc
inc edx
add edx, 7
push edx
mov eax, dword [ebp - 0x38]
lea ecx, [ebp + eax - 0x150]
push ecx
call fcn.0044f580
add esp, 8
mov edx, 4
imul eax, edx, 0x1a4
mov ecx, dword [eax + 0x48d680]
add ecx, 0x2c6e1d95
mov edx, 4
imul eax, edx, 0x1a4
mov dword [eax + 0x48d680], ecx
push 5
push 0x183e
call fcn.00452760
add esp, 8
mov dword [ebp - 0x1c], eax
mov ecx, 4
imul edx, ecx, 0x33b
mov eax, 4
imul ecx, eax, 0x40f
mov eax, dword [ecx + 0x48d680]
or eax, 0x4fcc711a
mov ecx, dword [edx + 0x48d680]
add ecx, eax
mov edx, 4
imul eax, edx, 0x33b
mov dword [eax + 0x48d680], ecx
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x150]
push edx
call fcn.004630c0
add esp, 8
mov eax, 4
imul ecx, eax, 0x153
mov edx, dword [ecx + 0x48d680]
xor edx, 0xcefb1c7a
mov eax, 4
imul ecx, eax, 0x153
mov dword [ecx + 0x48d680], edx
push 3
push 0x1b5f
call fcn.00452760
add esp, 8
mov dword [ebp - 0x24], eax
mov edx, 4
imul eax, edx, 0x425
mov ecx, 4
imul edx, ecx, 0x4a9
imul ecx, dword [edx + 0x48d680], 0x2b2d8e43
or ecx, 0x4ca3d780
mov edx, dword [eax + 0x48d680]
imul edx, ecx
mov eax, 4
imul ecx, eax, 0x425
mov dword [ecx + 0x48d680], edx
mov edx, dword [ebp - 0x1c]
push edx
push 5
call fcn.00413560
add esp, 8
mov eax, 4
imul ecx, eax, 0x440
mov edx, 4
imul eax, edx, 0x430
imul edx, dword [eax + 0x48d680], 0xe3bfb09e
mov eax, 4
imul eax, eax, 0x594
mov eax, dword [eax + 0x48d680]
shl eax, 8
imul edx, eax
mov ecx, dword [ecx + 0x48d680]
or ecx, edx
mov edx, 4
imul eax, edx, 0x440
mov dword [eax + 0x48d680], ecx
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x150]
push edx
call fcn.00464121
add esp, 8
mov dword [ebp - 8], eax
mov eax, 4
imul ecx, eax, 0x31f
mov edx, dword [ecx + 0x48d680]
and edx, 0x11b0431f
mov eax, 4
imul ecx, eax, 0x89
mov dword [ecx + 0x48d680], edx
mov edx, dword [ebp - 0x24]
push edx
push 3
call fcn.00413560
add esp, 8
mov eax, 2
imul ecx, eax, 0x568
movsx edx, word [ecx + 0x48ed48]
mov eax, 0xbd5e7845
sub eax, edx
and eax, 0xf28757a9
cmp eax, 0x102c1968
jge 0x4057cc
mov ecx, 4
imul edx, ecx, 0x4e1
mov eax, dword [edx + 0x48d680]
sub eax, 1
mov dword [ebp - 0x18], eax
mov ecx, 4
imul edx, ecx, 0x4e1
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x48d680], eax
mov ecx, dword [ebp - 0x18]
and ecx, 0xc64d82c7
cmp ecx, 0xeceac585
je 0x40578d
mov edx, 4
imul eax, edx, 0x2a1
mov ecx, 4
imul edx, ecx, 0xe4
mov eax, dword [eax + 0x48d680]
imul eax, dword [edx + 0x48d680]
mov ecx, 4
imul edx, ecx, 0x2a1
mov dword [edx + 0x48d680], eax
mov eax, 4
imul ecx, eax, 0xe4
mov edx, dword [ecx + 0x48d680]
sub edx, 1
mov eax, 4
imul ecx, eax, 0xe4
mov dword [ecx + 0x48d680], edx
jmp 0x4057cc
mov edx, 4
imul eax, edx, 0x2d
mov ecx, dword [eax + 0x48d680]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, 4
imul eax, edx, 0x2d
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x48d680], ecx
mov edx, dword [ebp - 0x2c]
or edx, 0x7c79f61e
mov eax, 4
imul ecx, eax, 0x54f
mov dword [ecx + 0x48d680], edx
cmp dword [ebp - 8], 0
je 0x405dc6
mov edx, 4
imul eax, edx, 0x134
mov ecx, dword [eax + 0x48d680]
sub ecx, 0x1847cc24
mov edx, 4
imul eax, edx, 0x134
mov dword [eax + 0x48d680], ecx
mov ecx, 4
imul edx, ecx, 0x232
cmp dword [edx + 0x48d680], 0xcce18eac
jge 0x405852
mov eax, 4
imul ecx, eax, 0x4b7
mov edx, 4
imul eax, edx, 0x457
mov edx, dword [eax + 0x48d680]
not edx
imul eax, edx, 0x6efbbf03
mov ecx, dword [ecx + 0x48d680]
or ecx, eax
mov edx, 4
imul eax, edx, 0x4b7
mov dword [eax + 0x48d680], ecx
mov ecx, dword [ebp - 8]
push ecx
push 1
mov ecx, dword [ebp + 8]
call fcn.00412370
push eax
mov ecx, dword [ebp + 8]
call fcn.00439470
push eax
call fcn.004642d4
add esp, 0x10
mov edx, 4
imul eax, edx, 0x487
mov ecx, dword [eax + 0x48d680]
sub ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, 4
imul eax, edx, 0x487
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x48d680], ecx
mov edx, dword [ebp - 0x20]
sub edx, 0x53210698
mov eax, 4
imul ecx, eax, 0x34f
mov dword [ecx + 0x48d680], edx
mov edx, dword [ebp - 8]
push edx
call fcn.00463df6
add esp, 4
mov eax, 2
imul ecx, eax, 0x156
movsx edx, word [ecx + 0x48ed48]
xor edx, 0xf140a7b1
mov eax, 2
imul ecx, eax, 0x156
mov word [ecx + 0x48ed48], dx
mov ecx, dword [ebp + 8]
call fcn.0045e850
mov edx, 4
imul eax, edx, 0x9a
mov ecx, dword [eax + 0x48d680]
add ecx, 0x6aca1539
mov edx, 4
imul eax, edx, 0x9a
mov dword [eax + 0x48d680], ecx
mov ecx, 1
imul edx, ecx, 0x104
mov byte [ebp + edx - 0x258], 0
mov eax, 2
imul ecx, eax, 0x373
movsx edx, word [ecx + 0x48ed48]
add edx, 0x142710aa
and edx, 0x3c81c057
cmp edx, 0x3b390ee3
jle 0x4059c2
mov eax, 4
imul ecx, eax, 0x43a
mov edx, dword [ecx + 0x48d680]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, 4
imul ecx, eax, 0x43a
mov edx, dword [ebp - 0x28]
mov dword [ecx + 0x48d680], edx
mov eax, 2
imul ecx, eax, 0x187
movsx edx, word [ecx + 0x48ed48]
add edx, dword [ebp - 0x28]
and edx, 0xb4480bf8
mov eax, 4
imul ecx, eax, 0x82
mov eax, dword [ecx + 0x48d680]
or eax, edx
mov ecx, 4
imul edx, ecx, 0x82
mov dword [edx + 0x48d680], eax
jmp 0x4059f5
mov eax, 4
imul ecx, eax, 0x101
mov edx, 4
imul eax, edx, 0x508
mov ecx, dword [ecx + 0x48d680]
add ecx, dword [eax + 0x48d680]
mov edx, 4
imul eax, edx, 0x101
mov dword [eax + 0x48d680], ecx
push 0x104
lea ecx, [ebp - 0x258]
push ecx
push 0
call dword [0x48d598]
mov edx, 2
imul eax, edx, 0x68
mov ecx, 0xffff80bc
mov word [eax + 0x48ed48], cx
mov edx, 1
shl edx, 0xa
mov byte [ebp + edx - 0x65c], 0
mov eax, 4
imul ecx, eax, 0x30d
imul edx, dword [ecx + 0x48d680], 0xfc7422f0
mov eax, 4
imul ecx, eax, 0x30d
mov dword [ecx + 0x48d680], edx
push 0x15
push 0x119e
call fcn.00452760
add esp, 8
mov dword [ebp - 0x10], eax
mov edx, 4
imul eax, edx, 0x28
mov ecx, dword [eax + 0x48d680]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, 4
imul eax, edx, 0x28
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x48d680], ecx
mov edx, 2
imul eax, edx, 0x169
movsx ecx, word [eax + 0x48ed48]
and ecx, dword [ebp - 0xc]
mov edx, 2
imul eax, edx, 0x169
mov word [eax + 0x48ed48], cx
mov ecx, dword [0x48d48c]
push ecx
mov edx, dword [0x48d474]
push edx
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x65c]
push edx
call fcn.00464520
add esp, 0x14
mov eax, 4
imul ecx, eax, 0x2b7
mov edx, dword [ecx + 0x48d680]
and edx, 0xde088fcf
mov eax, 4
imul ecx, eax, 0x2b7
mov dword [ecx + 0x48d680], edx
mov edx, dword [ebp - 0x10]
push edx
push 0x15
call fcn.00413560
add esp, 8
mov eax, 4
imul ecx, eax, 0x1a3
mov edx, dword [ecx + 0x48d680]
add edx, 0x67e92d47
or edx, 0x449d5bd8
mov dword [ebp - 0x34], edx
mov eax, 4
imul ecx, eax, 0x1a3
mov edx, dword [ecx + 0x48d680]
add edx, 1
mov eax, 4
imul ecx, eax, 0x1a3
mov dword [ecx + 0x48d680], edx
cmp dword [ebp - 0x34], 0x3f0055a9
je 0x405bc6
mov edx, 4
imul eax, edx, 0x56f
mov ecx, dword [eax + 0x48d680]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, 4
imul eax, edx, 0x56f
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x48d680], ecx
imul edx, dword [ebp - 0x14], 0x2db731e5
mov eax, 4
imul ecx, eax, 0x483
mov eax, dword [ecx + 0x48d680]
sub eax, edx
mov ecx, 4
imul edx, ecx, 0x4ae
mov ecx, dword [edx + 0x48d680]
or ecx, eax
mov edx, 4
imul eax, edx, 0x4ae
mov dword [eax + 0x48d680], ecx
mov ecx, dword [0x48d48c]
push ecx
call fcn.00453bc0
add esp, 4
mov edx, 4
imul eax, edx, 0x3f0
mov ecx, 4
imul edx, ecx, 0x21c
mov eax, dword [eax + 0x48d680]
xor eax, dword [edx + 0x48d680]
mov ecx, 4
imul edx, ecx, 0x3f0
mov dword [edx + 0x48d680], eax
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x150]
push ecx
call fcn.004049b0
add esp, 8
mov edx, 4
imul eax, edx, 0x235
mov ecx, dword [eax + 0x48d680]
sub ecx, 0x62f5da93
mov edx, 4
imul eax, edx, 0x235
mov dword [eax + 0x48d680], ecx
push 0x401
push 0
lea ecx, [ebp - 0x65c]
push ecx
call fcn.00463020
add esp, 0xc
mov edx, 4
imul eax, edx, 0x1e4
mov ecx, dword [eax + 0x48d680]
shl ecx, 9
xor ecx, 0x9e57ef79
cmp ecx, 0x84c60436
jge 0x405cde
mov edx, 4
imul eax, edx, 0x108
mov ecx, dword [eax + 0x48d680]
or ecx, 0x7cc2d182
cmp ecx, 0x24ab6730
jne 0x405cde
mov edx, 4
imul eax, edx, 0x494
mov ecx, 4
imul edx, ecx, 0x474
mov ecx, dword [edx + 0x48d680]
and ecx, 0xc247cc80
or ecx, 0xa96ebf3b
mov edx, dword [eax + 0x48d680]
xor edx, ecx
mov eax, 4
imul ecx, eax, 0x494
mov dword [ecx + 0x48d680], edx
push 0x105
push 0
lea edx, [ebp - 0x258]
push edx
call fcn.00463020
add esp, 0xc
mov eax, 2
imul ecx, eax, 0x3cc
mov dx, word [ecx + 0x48ed48]
sub dx, 1
mov word [ebp - 2], dx
mov eax, 2
imul ecx, eax, 0x3cc
mov dx, word [ebp - 2]
mov word [ecx + 0x48ed48], dx
movsx eax, word [ebp - 2]
or eax, 0xddb0bf15
mov ecx, 2
imul edx, ecx, 0x239
movsx ecx, word [edx + 0x48ed48]
add ecx, eax
mov edx, 2
imul eax, edx, 0x239
mov word [eax + 0x48ed48], cx
push 0x15f90
call dword [0x48d5f4]
mov ecx, 4
imul edx, ecx, 0x37a
mov eax, 4
imul ecx, eax, 0x367
mov edx, dword [edx + 0x48d680]
xor edx, dword [ecx + 0x48d680]
mov eax, 4
imul ecx, eax, 0x37a
mov dword [ecx + 0x48d680], edx
lea edx, [ebp - 0x150]
push edx
call dword [0x48d53c]
mov eax, 4
imul ecx, eax, 0x322
mov edx, dword [ecx + 0x48d680]
xor edx, 0x71ac663b
mov eax, 4
imul ecx, eax, 0x322
mov dword [ecx + 0x48d680], edx
mov edx, 4
imul eax, edx, 0x51f
mov ecx, dword [eax + 0x48d680]
or ecx, 0xb4f7adad
mov edx, 4
imul eax, edx, 0x51f
mov dword [eax + 0x48d680], ecx
push 0x118
push 0
lea ecx, [ebp - 0x150]
push ecx
call fcn.00463020
add esp, 0xc
mov edx, 4
imul eax, edx, 0x2e9
mov ecx, dword [eax + 0x48d680]
add ecx, 0x3d3d1590
mov edx, 4
imul eax, edx, 0x2e9
mov dword [eax + 0x48d680], ecx
mov ecx, 4
imul edx, ecx, 0x5a8
mov eax, 4
imul ecx, eax, 0x225
mov edx, dword [edx + 0x48d680]
sub edx, dword [ecx + 0x48d680]
or edx, 0x92e3f6bc
cmp edx, 0xa957ac04
jg 0x405e91
mov eax, 4
imul ecx, eax, 0x6b
mov edx, 4
imul eax, edx, 0x307
mov edx, dword [eax + 0x48d680]
xor edx, 0x558dc949
mov eax, dword [ecx + 0x48d680]
or eax, edx
mov ecx, 4
imul edx, ecx, 0x6b
mov dword [edx + 0x48d680], eax
mov esp, ebp
pop ebp
ret