Function at 0x41b674
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push esi
cmp dword [ebp + 8], 0
je 0x41b690
cmp dword [ebp + 0xc], 0
je 0x41b690
cmp dword [ebp + 0x14], 0
jne 0x41b69f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41c87a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x164]
and ecx, 0x8000
test ecx, ecx
jne 0x41b6c1
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41c87a
mov edx, dword [ebp + 0x18]
and edx, 1
test edx, edx
je 0x41b6dd
mov eax, dword [ebp + 0x18]
xor eax, 1
mov dword [ebp + 0x18], eax
mov dword [ebp - 0xc], 1
jmp 0x41b6e4
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0x447aa4]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041f46e
add esp, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x41b70f
xor eax, eax
jmp 0x41c87a
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
mov ax, word [edx + 0x152]
mov ecx, eax
mov edx, 0x200
shl edx, cl
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x4c]
xor edx, edx
div dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
xor edx, edx
div dword [ebp - 0x44]
test edx, edx
je 0x41b760
mov eax, dword [ebp - 0x40]
add eax, 1
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 0x18]
and ecx, 0x200
test ecx, ecx
jne 0x41b781
mov edx, dword [ebp + 0x18]
and edx, 0x100
test edx, edx
je 0x41b78e
mov eax, dword [ebp - 0x40]
lea ecx, [eax*4 + 4]
mov dword [ebp - 0x30], ecx
push 4
mov edx, dword [0x440964]
push edx
mov eax, dword [ebp - 0x28]
add eax, 0x144
push eax
call fcn.00431a80
add esp, 0xc
test eax, eax
jne 0x41b847
mov dword [ebp - 8], 1
push 4
push 0x1000
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
lea eax, [edx + ecx + 0x144]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x41b7e4
xor eax, eax
jmp 0x41c87a
mov ecx, dword [ebp - 0x48]
mov byte [ecx], 0x44
mov edx, dword [ebp - 0x48]
mov byte [edx + 1], 1
mov eax, dword [ebp + 0x14]
push eax
call fcn.00431540
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x104
ja 0x41b822
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x48]
add eax, 0x40
push eax
call fcn.00431640
add esp, 0xc
jmp 0x41b83a
push 0x104
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x48]
add edx, 0x40
push edx
call fcn.00431980
add esp, 0xc
mov eax, dword [ebp - 0x48]
add eax, 0x144
mov dword [ebp - 0x34], eax
jmp 0x41b860
push 4
push 0x1000
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x41b873
cmp dword [ebp - 0x4c], 0
je 0x41b873
xor eax, eax
jmp 0x41c87a
cmp dword [ebp - 0x4c], 0
je 0x41b88f
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00431640
add esp, 0xc
jmp 0x41b8f0
mov edx, dword [ebp + 0x18]
and edx, 0x200
test edx, edx
je 0x41b8a7
mov eax, dword [ebp + 0x18]
xor eax, 0x200
mov dword [ebp + 0x18], eax
mov ecx, dword [ebp + 0x18]
and ecx, 0x100
test ecx, ecx
je 0x41b8c0
mov edx, dword [ebp + 0x18]
xor edx, 0x100
mov dword [ebp + 0x18], edx
mov eax, dword [ebp + 0x18]
and eax, 0x10000
test eax, eax
je 0x41b8d8
mov ecx, dword [ebp + 0x18]
xor ecx, 0x10000
mov dword [ebp + 0x18], ecx
mov edx, dword [ebp + 0x18]
and edx, 0x20000
test edx, edx
je 0x41b8f0
mov eax, dword [ebp + 0x18]
xor eax, 0x20000
mov dword [ebp + 0x18], eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x40]
lea edx, [ecx*4 + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x41b92b
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41c87a
mov ecx, dword [ebp + 0x18]
and ecx, 0x200
cmp ecx, 0x200
je 0x41b951
mov edx, dword [ebp + 0x18]
and edx, 0x100
cmp edx, 0x100
jne 0x41bda4
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x41b972
mov ecx, dword [ebp + 0x1c]
and ecx, 0x80
test ecx, ecx
jne 0x41b972
mov edx, dword [ebp + 0x1c]
and edx, 0x40
test edx, edx
je 0x41b9cc
push 4
mov eax, dword [str.RIFF]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00431a80
add esp, 0xc
test eax, eax
jne 0x41b9be
push 8
mov edx, dword [str.WAVEfmt]
push edx
mov eax, dword [ebp - 0x34]
add eax, 8
push eax
call fcn.00431a80
add esp, 0xc
test eax, eax
jne 0x41b9be
mov ecx, dword [ebp - 0x34]
movsx edx, byte [ecx + 0x22]
cmp edx, 0x10
jne 0x41b9be
mov eax, dword [ebp - 0x34]
movsx ecx, byte [eax + 0x14]
cmp ecx, 1
je 0x41b9cc
mov dword [ebp + 0x1c], 8
mov dword [ebp + 0x20], 0
mov edx, dword [ebp + 0x1c]
and edx, 0x40
test edx, edx
jne 0x41b9e2
mov eax, dword [ebp + 0x1c]
and eax, 0x80
test eax, eax
je 0x41ba18
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x88], ecx
cmp dword [ebp - 0x88], 1
je 0x41b9ff
cmp dword [ebp - 0x88], 2
je 0x41ba08
jmp 0x41ba11
mov dword [ebp + 0x20], 1
jmp 0x41ba18
mov dword [ebp + 0x20], 3
jmp 0x41ba18
mov dword [ebp + 0x20], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x64], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x41ba63
push 0x8000
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41c87a
push 4
push 0x1000
mov eax, dword [ebp - 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x41bab9
push 0x8000
push 0
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41c87a
push 4
push 0x1000
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0x30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x41bb23
push 0x8000
push 0
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41c87a
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x24], 0
jmp 0x41bb3c
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x40]
jae 0x41bd35
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x64]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x40]
sub edx, 1
cmp dword [ebp - 0x24], edx
jne 0x41bb76
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x44]
test edx, edx
je 0x41bb76
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x44]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp + 0x18]
and edx, 0x200
test edx, edx
je 0x41bc67
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.00431640
add esp, 0xc
cmp dword [ebp - 0x24], 0
jne 0x41bbf8
mov eax, dword [ebp + 0x1c]
and eax, 1
test eax, eax
jne 0x41bbd1
mov ecx, dword [ebp + 0x1c]
and ecx, 0x80
test ecx, ecx
jne 0x41bbd1
mov edx, dword [ebp + 0x1c]
and edx, 0x40
test edx, edx
je 0x41bbf8
push 0
push 0
push 8
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.00420ba0
test eax, eax
jne 0x41bbf6
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x6c], ecx
jmp 0x41bc65
mov edx, dword [ebp + 0x1c]
and edx, 0x34
test edx, edx
je 0x41bc3c
call fcn.00420aaa
cmp dword [0x447ad4], 0
je 0x41bc3a
mov eax, dword [ebp + 0x20]
push eax
push 0
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [0x447ad4]
test eax, eax
jne 0x41bc3a
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], eax
jmp 0x41bc65
mov ecx, dword [ebp + 0x20]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.00420ba0
test eax, eax
jne 0x41bc65
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x6c], ecx
jmp 0x41bcdd
mov edx, dword [ebp + 0x18]
and edx, 0x100
test edx, edx
je 0x41bcc6
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x34]
add ecx, dword [ebp - 0x5c]
push ecx
mov edx, dword [ebp - 0x68]
push edx
call fcn.00431640
add esp, 0xc
push 0
push 0
push 8
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x58]
push eax
call fcn.00420ba0
test eax, eax
jne 0x41bcb2
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x6c], ecx
jmp 0x41bcc4
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x6c]
sub eax, 1
mov dword [ebp - 0x6c], eax
jmp 0x41bcdd
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x68]
push eax
call fcn.00431640
add esp, 0xc
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0x44]
jb 0x41bd07
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x60]
add ecx, dword [ebp - 0x64]
push ecx
call fcn.00431640
add esp, 0xc
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x44]
mov dword [ebp - 0x64], edx
jmp 0x41bd27
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x58]
push ecx
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x64]
push edx
call fcn.00431640
add esp, 0xc
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x5c], ecx
jmp 0x41bb33
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x4c]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call fcn.00431640
add esp, 0xc
push 0x8000
push 0
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00431640
add esp, 0xc
push 0x8000
push 0
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41bde9
mov dword [ebp - 0x24], 0
jmp 0x41bdb6
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
cmp dword [ebp - 0x24], ecx
jae 0x41bde9
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x40]
jae 0x41bddb
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov dword [edx + ecx*4], eax
jmp 0x41bde7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4], edx
jmp 0x41bdad
cmp dword [ebp - 8], 1
jne 0x41be01
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x144
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 4], edx
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x160]
shl ecx, 4
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
and al, 0xfe
cmp eax, 0xfffffffe
jne 0x41bee8
push 4
push 0x1000
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x160]
add edx, 1
shl edx, 4
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x41be6e
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41c87a
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x134], 0
je 0x41be9d
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x160]
shl eax, 4
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
push edx
mov eax, dword [ebp - 0x70]
push eax
call fcn.00431640
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x160]
add edx, 1
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x160], edx
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x134], 0
je 0x41bed5
push 0x8000
push 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x70]
mov dword [ecx + 0x134], edx
mov dword [ebp - 0x38], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x160]
sub ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
and al, 0xfe
cmp eax, 0xfffffffe
jne 0x41bf57
push 1
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00420213
add esp, 8
mov edx, dword [ebp - 4]
mov dword [edx], eax
push 2
mov eax, dword [ebp + 0x14]
push eax
call fcn.00420213
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [0x447aa4]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov dword [edx + eax], 0
jmp 0x41bf60
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
cmp dword [ecx + edx], 0
je 0x41bf91
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov edx, dword [ecx + edx + 4]
cmp edx, dword [ebp - 0x4c]
jae 0x41c30d
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x15c]
shl ecx, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x154]
add eax, ecx
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
cmp eax, dword [ecx + 0x14c]
jne 0x41c103
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x18]
shl eax, 4
mov esi, dword [ebp - 0x28]
mov esi, dword [esi + 0x134]
mov ecx, dword [ecx + edx]
add ecx, dword [esi + eax + 4]
mov edx, dword [ebp - 0x28]
cmp ecx, dword [edx + 0x154]
jne 0x41c089
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [edx + eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x154]
add eax, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x154], eax
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ecx + edx + 4]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x158]
add edx, eax
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x158], edx
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x134]
mov edx, dword [ebp - 0x4c]
sub edx, dword [eax + ecx + 4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, edx
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
cmp dword [ebp - 0x38], 1
jne 0x41c087
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, 0x10
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
jmp 0x41c0fe
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x154]
mov dword [edx + eax], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x154]
add eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x154], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x158]
add eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x158], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14c]
add eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x14c], eax
cmp dword [ebp - 0x38], 1
jne 0x41c0fe
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14c]
add eax, 0x10
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x14c], eax
jmp 0x41c30d
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x158]
add eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
cmp eax, dword [ecx + 0x14c]
jne 0x41c224
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x18]
shl eax, 4
mov esi, dword [ebp - 0x28]
mov esi, dword [esi + 0x134]
mov ecx, dword [ecx + edx]
add ecx, dword [esi + eax + 4]
mov edx, dword [ebp - 0x28]
cmp ecx, dword [edx + 0x158]
jne 0x41c1bf
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ebp - 0x4c]
sub ecx, dword [edx + eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x158]
add eax, ecx
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x158], eax
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x4c]
sub eax, dword [ecx + edx + 4]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x14c]
add edx, eax
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14c], edx
cmp dword [ebp - 0x38], 1
jne 0x41c1bd
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x14c]
add edx, 0x10
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14c], edx
jmp 0x41c21f
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x134]
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x158]
mov dword [eax + ecx], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x158]
add ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x158], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
cmp dword [ebp - 0x38], 1
jne 0x41c21f
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, 0x10
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
jmp 0x41c30d
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov esi, dword [ebp - 0x28]
mov esi, dword [esi + 0x134]
mov edx, dword [edx + eax]
add edx, dword [esi + ecx + 4]
mov eax, dword [ebp - 0x28]
cmp edx, dword [eax + 0x14c]
jne 0x41c2a4
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x134]
mov ecx, dword [eax + ecx]
add ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x158], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x158]
add ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
cmp dword [ebp - 0x38], 1
jne 0x41c2a2
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, 0x10
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
jmp 0x41c30d
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x14c]
mov dword [edx + eax], ecx
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov edx, dword [ecx + edx]
add edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x158], edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x158]
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14c], edx
cmp dword [ebp - 0x38], 1
jne 0x41c30d
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x14c]
add edx, 0x10
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14c], edx
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x134]
mov edx, dword [ebp - 0x4c]
mov dword [eax + ecx + 4], edx
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ebp - 0x10]
mov dword [edx + eax + 8], ecx
mov edx, dword [ebp + 0x18]
or edx, 0x80000000
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx + 0x134]
mov dword [ecx + eax + 0xc], edx
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov edx, dword [ecx + edx]
mov dword [ebp - 0x1c], edx
push 0
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x12c]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x148]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x144
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x18]
and ecx, 0x10000
test ecx, ecx
je 0x41c528
mov edx, dword [ebp + 0x18]
and edx, 0x10000
test edx, edx
je 0x41c3e1
push 3
mov eax, dword [ebp + 0x14]
push eax
call fcn.00420213
add esp, 8
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp + 0x18]
and ecx, 0x20000
test ecx, ecx
je 0x41c419
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x74]
add eax, dword [ecx + edx]
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0x28]
mov edx, dword [edx + 0x134]
xor eax, dword [edx + ecx + 8]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 0x152]
mov edx, 0x200
shl edx, cl
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + eax + 8]
xor edx, edx
div dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + eax + 8]
xor edx, edx
div dword [ebp - 0x80]
test edx, edx
je 0x41c46f
mov eax, dword [ebp - 0x7c]
add eax, 1
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x18]
shl ecx, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x134]
mov eax, dword [eax + ecx + 8]
xor edx, edx
div dword [ebp - 0x80]
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0
jne 0x41c49f
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp + 0x18]
and edx, 0x200
cmp edx, 0x200
je 0x41c4bf
mov eax, dword [ebp + 0x18]
and eax, 0x100
cmp eax, 0x100
jne 0x41c4d6
mov ecx, dword [ebp - 0x74]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004202ba
add esp, 0xc
mov dword [ebp - 0x78], 0
jmp 0x41c4e8
mov ecx, dword [ebp - 0x78]
add ecx, 1
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
cmp edx, dword [ebp - 0x7c]
jae 0x41c528
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [edx + ecx*4 + 4]
sub ecx, dword [esi + eax*4]
push ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
add ecx, dword [eax + edx*4]
push ecx
call fcn.004202ba
add esp, 0xc
mov edx, dword [ebp - 0x74]
add edx, 1
mov dword [ebp - 0x74], edx
jmp 0x41c4df
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x12c]
add edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x8000
push 0
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 4
push 0x1000
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x15c]
shl eax, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x41c658
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x15c]
shl edx, 4
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x138]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00431640
add esp, 0xc
mov eax, dword [0x447998]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x15c]
shl edx, 4
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004202ba
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x12c]
mov eax, dword [ebp - 0x28]
add edx, dword [eax + 0x154]
push edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x15c]
shl edx, 4
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41c6f7
mov ecx, dword [0x447998]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x15c]
shl eax, 4
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x138]
push edx
call fcn.004202ba
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x12c]
mov edx, dword [ebp - 0x28]
add ecx, dword [edx + 0x154]
push ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x15c]
shl ecx, 4
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x138]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x447998]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x15c]
shl edx, 4
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x138]
push ecx
call fcn.00420355
add esp, 0xc
push 4
push 0x1000
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x160]
shl eax, 4
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x41c7c6
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x160]
shl edx, 4
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.00431640
add esp, 0xc
mov eax, dword [0x446594]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x160]
shl edx, 4
push edx
mov eax, dword [ebp - 0x34]
push eax
call fcn.004202ba
add esp, 0xc
push 0
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x12c]
mov eax, dword [ebp - 0x28]
add edx, dword [eax + 0x158]
push edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x160]
shl edx, 4
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x8000
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41c865
mov ecx, dword [0x446594]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x160]
shl eax, 4
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
push edx
call fcn.004202ba
add esp, 0xc
push 0
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x12c]
mov edx, dword [ebp - 0x28]
add ecx, dword [edx + 0x158]
push ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x160]
shl ecx, 4
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x134]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x446594]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x160]
shl edx, 4
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
push ecx
call fcn.00420355
add esp, 0xc
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041f78d
add esp, 8
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x1c