Function at 0x41a382
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
cmp dword [ebp + 8], 0
je 0x41a39e
cmp dword [ebp + 0xc], 0
je 0x41a39e
cmp dword [ebp + 0x10], 0
jne 0x41a3ad
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41b628
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x164]
and ecx, 0x8000
test ecx, ecx
jne 0x41a3cf
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41b628
mov edx, dword [ebp + 0x14]
and edx, 1
test edx, edx
je 0x41a3eb
mov eax, dword [ebp + 0x14]
xor eax, 1
mov dword [ebp + 0x14], eax
mov dword [ebp - 0xc], 1
jmp 0x41a3f2
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [0x447aa4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041f46e
add esp, 0x10
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x41a41d
xor eax, eax
jmp 0x41b628
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x41a446
xor eax, eax
jmp 0x41b628
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 0x152]
mov edx, 0x200
shl edx, cl
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x50]
xor edx, edx
div dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
xor edx, edx
div dword [ebp - 0x48]
test edx, edx
je 0x41a49e
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 0x14]
and ecx, 0x200
test ecx, ecx
jne 0x41a4bf
mov edx, dword [ebp + 0x14]
and edx, 0x100
test edx, edx
je 0x41a4cc
mov eax, dword [ebp - 0x44]
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 0x41a590
mov dword [ebp - 8], 1
push 4
push 0x1000
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x50]
lea eax, [edx + ecx + 0x144]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x41a52c
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41b628
mov edx, dword [ebp - 0x4c]
mov byte [edx], 0x44
mov eax, dword [ebp - 0x4c]
mov byte [eax + 1], 1
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00431540
add esp, 4
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x104
ja 0x41a56a
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x4c]
add ecx, 0x40
push ecx
call fcn.00431640
add esp, 0xc
jmp 0x41a582
push 0x104
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x4c]
add eax, 0x40
push eax
call fcn.00431980
add esp, 0xc
mov ecx, dword [ebp - 0x4c]
add ecx, 0x144
mov dword [ebp - 0x38], ecx
jmp 0x41a5a9
push 4
push 0x1000
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x41a5c6
cmp dword [ebp - 0x50], 0
je 0x41a5c6
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41b628
cmp dword [ebp - 0x50], 0
je 0x41a60c
push 0
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a60a
push 0x8000
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x41b628
jmp 0x41a66e
mov ecx, dword [ebp + 0x14]
and ecx, 0x200
test ecx, ecx
je 0x41a625
mov edx, dword [ebp + 0x14]
xor edx, 0x200
mov dword [ebp + 0x14], edx
mov eax, dword [ebp + 0x14]
and eax, 0x100
test eax, eax
je 0x41a63d
mov ecx, dword [ebp + 0x14]
xor ecx, 0x100
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0x14]
and edx, 0x10000
test edx, edx
je 0x41a655
mov eax, dword [ebp + 0x14]
xor eax, 0x10000
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x14]
and ecx, 0x20000
test ecx, ecx
je 0x41a66e
mov edx, dword [ebp + 0x14]
xor edx, 0x20000
mov dword [ebp + 0x14], edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push 0x1000
mov ecx, dword [ebp - 0x44]
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 0x41a6b3
push 0x8000
push 0
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41b628
mov ecx, dword [ebp + 0x14]
and ecx, 0x200
cmp ecx, 0x200
je 0x41a6d9
mov edx, dword [ebp + 0x14]
and edx, 0x100
cmp edx, 0x100
jne 0x41ab36
mov eax, dword [ebp + 0x18]
and eax, 1
test eax, eax
jne 0x41a6fa
mov ecx, dword [ebp + 0x18]
and ecx, 0x80
test ecx, ecx
jne 0x41a6fa
mov edx, dword [ebp + 0x18]
and edx, 0x40
test edx, edx
je 0x41a754
push 4
mov eax, dword [str.RIFF]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00431a80
add esp, 0xc
test eax, eax
jne 0x41a746
push 8
mov edx, dword [str.WAVEfmt]
push edx
mov eax, dword [ebp - 0x38]
add eax, 8
push eax
call fcn.00431a80
add esp, 0xc
test eax, eax
jne 0x41a746
mov ecx, dword [ebp - 0x38]
movsx edx, byte [ecx + 0x22]
cmp edx, 0x10
jne 0x41a746
mov eax, dword [ebp - 0x38]
movsx ecx, byte [eax + 0x14]
cmp ecx, 1
je 0x41a754
mov dword [ebp + 0x18], 8
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp + 0x18]
and edx, 0x40
test edx, edx
jne 0x41a76a
mov eax, dword [ebp + 0x18]
and eax, 0x80
test eax, eax
je 0x41a7a0
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 1
je 0x41a787
cmp dword [ebp - 0x90], 2
je 0x41a790
jmp 0x41a799
mov dword [ebp + 0x1c], 1
jmp 0x41a7a0
mov dword [ebp + 0x1c], 3
jmp 0x41a7a0
mov dword [ebp + 0x1c], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x68], edx
push 4
push 0x1000
mov eax, dword [ebp - 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
jne 0x41a7eb
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 - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41b628
push 4
push 0x1000
mov eax, dword [ebp - 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x41a841
push 0x8000
push 0
mov ecx, dword [ebp - 0x58]
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 - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41b628
push 4
push 0x1000
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jne 0x41a8ab
push 0x8000
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
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 - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41b628
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x24], 0
jmp 0x41a8c4
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x44]
jae 0x41aac7
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x68]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x44]
sub edx, 1
cmp dword [ebp - 0x24], edx
jne 0x41a8fe
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x48]
test edx, edx
je 0x41a8fe
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x48]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x74], edx
mov eax, dword [ebp + 0x14]
and eax, 0x200
test eax, eax
je 0x41a9f4
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00431640
add esp, 0xc
cmp dword [ebp - 0x24], 0
jne 0x41a985
mov ecx, dword [ebp + 0x18]
and ecx, 1
test ecx, ecx
jne 0x41a95e
mov edx, dword [ebp + 0x18]
and edx, 0x80
test edx, edx
jne 0x41a95e
mov eax, dword [ebp + 0x18]
and eax, 0x40
test eax, eax
je 0x41a985
push 0
push 0
push 8
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00420ba0
test eax, eax
jne 0x41a983
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x70], edx
jmp 0x41a9f2
mov eax, dword [ebp + 0x18]
and eax, 0x34
test eax, eax
je 0x41a9c9
call fcn.00420aaa
cmp dword [0x447ad4], 0
je 0x41a9c7
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x70]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call dword [0x447ad4]
test eax, eax
jne 0x41a9c7
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x70], ecx
jmp 0x41a9f2
mov edx, dword [ebp + 0x1c]
push edx
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00420ba0
test eax, eax
jne 0x41a9f2
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x70], edx
jmp 0x41aa69
mov eax, dword [ebp + 0x14]
and eax, 0x100
test eax, eax
je 0x41aa52
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x6c]
push eax
call fcn.00431640
add esp, 0xc
push 0
push 0
push 8
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00420ba0
test eax, eax
jne 0x41aa3e
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x70], edx
jmp 0x41aa50
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x70]
sub ecx, 1
mov dword [ebp - 0x70], ecx
jmp 0x41aa69
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00431640
add esp, 0xc
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp - 0x48]
jb 0x41aa93
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x64]
add edx, dword [ebp - 0x68]
push edx
call fcn.00431640
add esp, 0xc
mov eax, dword [ebp - 0x68]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
jmp 0x41aab3
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x64]
add eax, dword [ebp - 0x68]
push eax
call fcn.00431640
add esp, 0xc
mov ecx, dword [ebp - 0x68]
add ecx, dword [ebp - 0x70]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x60]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x60], eax
jmp 0x41a8bb
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x50]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.00431640
add esp, 0xc
push 0x8000
push 0
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x64]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00431640
add esp, 0xc
push 0x8000
push 0
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41ab7b
mov dword [ebp - 0x24], 0
jmp 0x41ab48
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x44]
add eax, 1
cmp dword [ebp - 0x24], eax
jae 0x41ab7b
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x44]
jae 0x41ab6d
mov edx, dword [ebp - 0x24]
imul edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + eax*4], edx
jmp 0x41ab79
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword [eax + edx*4], ecx
jmp 0x41ab3f
cmp dword [ebp - 8], 1
jne 0x41ab92
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x50]
add eax, 0x144
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x3c], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x160]
shl eax, 4
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
and edx, 0xfffffffe
cmp edx, 0xfffffffe
jne 0x41ac7a
push 4
push 0x1000
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x160]
add ecx, 1
shl ecx, 4
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x41ac00
push 0x8000
push 0
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x41b628
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x134], 0
je 0x41ac2f
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 - 0x78]
push edx
call fcn.00431640
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x160]
add ecx, 1
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x160], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x134], 0
je 0x41ac67
push 0x8000
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x78]
mov dword [eax + 0x134], ecx
mov dword [ebp - 0x3c], 1
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x160]
sub eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
and edx, 0xfffffffe
cmp edx, 0xfffffffe
jne 0x41acea
push 1
mov eax, dword [ebp + 0x10]
push eax
call fcn.00420213
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
push 2
mov edx, dword [ebp + 0x10]
push edx
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 0x41acf3
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 0x41ad24
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 - 0x50]
jae 0x41b0a0
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 0x41ae96
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 0x41ae1c
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ebp - 0x50]
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 - 0x50]
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 - 0x50]
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 - 0x3c], 1
jne 0x41ae1a
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, 0x10
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
jmp 0x41ae91
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 - 0x50]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x154], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x158]
add eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x158], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14c]
add eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x14c], eax
cmp dword [ebp - 0x3c], 1
jne 0x41ae91
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x14c]
add eax, 0x10
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x14c], eax
jmp 0x41b0a0
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 0x41afb7
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 0x41af52
mov eax, dword [ebp - 0x18]
shl eax, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x134]
mov ecx, dword [ebp - 0x50]
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 - 0x50]
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 - 0x3c], 1
jne 0x41af50
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x14c]
add edx, 0x10
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x14c], edx
jmp 0x41afb2
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 - 0x50]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x158], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
cmp dword [ebp - 0x3c], 1
jne 0x41afb2
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, 0x10
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
jmp 0x41b0a0
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 0x41b037
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 - 0x50]
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 - 0x3c], 1
jne 0x41b035
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x14c]
add ecx, 0x10
mov edx, dword [ebp - 0x28]
mov dword [edx + 0x14c], ecx
jmp 0x41b0a0
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 - 0x50]
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 - 0x3c], 1
jne 0x41b0a0
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 - 0x50]
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 + 0x14]
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 + 0x14]
and ecx, 0x10000
test ecx, ecx
je 0x41b2d6
mov edx, dword [ebp + 0x14]
and edx, 0x10000
test edx, edx
je 0x41b174
push 3
mov eax, dword [ebp + 0x10]
push eax
call fcn.00420213
add esp, 8
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp + 0x14]
and ecx, 0x20000
test ecx, ecx
je 0x41b1ac
mov edx, dword [ebp - 0x18]
shl edx, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x134]
mov eax, dword [ebp - 0x7c]
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 - 0x7c], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cx, word [eax + 0x152]
mov edx, 0x200
shl edx, cl
mov dword [ebp - 0x88], 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 - 0x88]
mov dword [ebp - 0x84], 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 - 0x88]
test edx, edx
je 0x41b214
mov eax, dword [ebp - 0x84]
add eax, 1
mov dword [ebp - 0x84], 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 - 0x88]
mov dword [ebp - 0x8c], edx
cmp dword [ebp - 0x8c], 0
jne 0x41b24a
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp + 0x14]
and edx, 0x200
cmp edx, 0x200
je 0x41b26a
mov eax, dword [ebp + 0x14]
and eax, 0x100
cmp eax, 0x100
jne 0x41b281
mov ecx, dword [ebp - 0x7c]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004202ba
add esp, 0xc
mov dword [ebp - 0x80], 0
jmp 0x41b293
mov ecx, dword [ebp - 0x80]
add ecx, 1
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
cmp edx, dword [ebp - 0x84]
jae 0x41b2d6
mov eax, dword [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [edx + ecx*4 + 4]
sub ecx, dword [esi + eax*4]
push ecx
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
add ecx, dword [eax + edx*4]
push ecx
call fcn.004202ba
add esp, 0xc
mov edx, dword [ebp - 0x7c]
add edx, 1
mov dword [ebp - 0x7c], edx
jmp 0x41b28a
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 - 0x50]
push eax
mov ecx, dword [ebp - 0x38]
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 - 0x38]
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 - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41b406
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 - 0x38]
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 - 0x38]
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 - 0x38]
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 - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41b4a5
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 - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x41b574
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 - 0x38]
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 - 0x38]
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 - 0x38]
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 - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41b613
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 + 0x10]
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 0x18