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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x120
mov eax, dword [0x521014]
xor eax, ebp
mov dword [esp + 0x118], eax
cmp dword [ecx + 0x10], 0
je 0x4322b1
cmp byte [ecx + 0xb], 0
mov dword [esp + 0x1c], ecx
js 0x4322b8
mov eax, ecx
jmp 0x4322ba
xor ebx, ebx
jmp 0x432e38
mov eax, dword [ecx]
sub esp, 0x1c
movdqa xmm0, xmmword [0x508eb0]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
test eax, eax
je 0x43230b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp edi, 0xffffffff
je 0x432e52
call fcn.0046eab0
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea eax, [esi + 1]
cmp eax, 2
jb 0x432e25
mov dword [esp + 0x28], eax
mov dword [esp + 8], esi
mov esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], ebx
mov eax, dword [esp + 0x1c]
movups xmm0, xmmword [eax + 0x24]
movups xmmword [esp + 0x108], xmm0
movdqu xmm0, xmmword [eax + 0x14]
movdqu xmmword [esp + 0xf8], xmm0
mov esi, dword [eax + 0x40]
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
test esi, esi
je 0x4323ad
cmp esi, 0x20000000
jae 0x432e65
lea eax, [esi*8]
push eax
call fcn.0048b346
add esp, 4
lea ecx, [eax + esi*8]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], ecx
xor eax, eax
lea ecx, [esp + 0x98]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [esp + 0x14], esi
push esi
call fcn.004335b0
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x38]
add eax, 0x3c
mov edi, 0
mov dword [esp + 0x2c], eax
cmp edx, eax
je 0x4327fb
xor ebx, ebx
xor edi, edi
mov dword [esp + 0xc], edi
movzx ecx, byte [edx + 0x1b]
test cl, cl
jns 0x4323f6
mov ecx, dword [edx + 0x14]
xor eax, eax
mov edi, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
add edi, 5
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edx
mov dword [esp], ecx
je 0x4327d6
test edi, edi
js 0x432e73
push edi
call fcn.0048b346
add esp, 4
mov ebx, eax
mov dword [esp + 0x50], eax
lea esi, [eax + edi]
mov dword [esp + 0x58], esi
push edi
push 0
push eax
call fcn.0048ef90
add esp, 0xc
mov dword [esp + 0x54], esi
mov dword [esp + 0x10], esi
mov edi, esi
mov dword [esp + 4], ebx
mov ecx, dword [esp]
mov eax, ecx
mov dword [ebx], ecx
add ebx, 4
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x1b], 0
jns 0x43246b
mov ecx, dword [esi + 0x10]
jmp 0x43246e
lea ecx, [esi + 0x10]
push eax
push ecx
push ebx
call fcn.0048e490
add esp, 0xc
mov ecx, dword [esp + 4]
mov eax, ecx
not eax
add edi, eax
mov byte [ecx + edi], 0
movzx eax, byte [esi + 0x27]
test al, al
jns 0x432492
mov eax, dword [esi + 0x20]
xor edi, edi
mov ebx, eax
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
add ebx, 5
mov dword [esp + 0x30], eax
je 0x4327e7
test ebx, ebx
js 0x432e7c
push ebx
call fcn.0048b346
add esp, 4
mov edi, eax
add eax, ebx
mov dword [esp], eax
push ebx
push 0
push edi
call fcn.0048ef90
add esp, 0xc
mov eax, dword [esp]
mov dword [esp + 0x24], eax
lea eax, [esi + 0x1c]
mov edx, dword [esp + 0x30]
mov dword [edi], edx
lea ecx, [edi + 4]
cmp byte [eax + 0xb], 0
mov ebx, 0
jns 0x4324fc
mov eax, dword [eax]
push edx
push eax
push ecx
call fcn.0048e490
add esp, 0xc
mov eax, edi
not eax
mov ecx, dword [esp + 0x24]
add ecx, eax
mov byte [edi + ecx], 0
mov eax, dword [esp + 4]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov eax, dword [esp]
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov dword [esp + 0x94], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x8c], ebx
mov eax, dword [esp + 0x9c]
cmp eax, dword [esp + 0xa0]
jae 0x432601
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov ecx, dword [esp + 0xc0]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc8]
mov dword [eax + 8], ecx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ecx, dword [esp + 0xcc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xd0]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0xd4]
mov dword [eax + 0x14], ecx
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xcc], ebx
add eax, 0x18
mov dword [esp + 0x9c], eax
jmp 0x432630
lea ecx, [esp + 0x98]
lea eax, [esp + 0xc0]
push eax
call fcn.004336d0
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x432630
mov dword [esp + 0xd0], eax
push eax
call fcn.0048b376
add esp, 4
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x43264b
mov dword [esp + 0xc4], eax
push eax
call fcn.0048b376
add esp, 4
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x43265f
push eax
call fcn.0048b376
add esp, 4
mov eax, dword [esp + 0x50]
test eax, eax
je 0x432670
push eax
call fcn.0048b376
add esp, 4
mov ecx, dword [esp + 0xa8]
mov edi, dword [esp + 0xac]
cmp ecx, edi
jae 0x43269e
mov dword [ecx + 4], ebx
mov dword [ecx], ebx
lea eax, [ecx + 8]
mov dword [esp + 0xa8], eax
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
jmp 0x43276f
mov edx, dword [esp + 0xa4]
sub ecx, edx
mov dword [esp + 4], ecx
mov ebx, ecx
sar ebx, 3
lea eax, [ebx + 1]
cmp eax, 0x20000000
jae 0x432e59
sub edi, edx
mov ecx, edi
sar ecx, 3
sar edi, 2
cmp edi, eax
cmovb edi, eax
cmp ecx, 0xfffffff
mov eax, 0x1fffffff
cmovae edi, eax
test edi, edi
mov dword [esp], edx
je 0x432705
cmp edi, 0x20000000
jae 0x432e65
lea eax, [edi*8]
push eax
call fcn.0048b346
add esp, 4
mov ecx, eax
mov edx, dword [esp]
jmp 0x432707
xor ecx, ecx
xor eax, eax
mov dword [ecx + ebx*8 + 4], eax
mov dword [ecx + ebx*8], eax
mov eax, dword [esp + 4]
test eax, eax
jle 0x43272f
push eax
push edx
push ecx
mov dword [esp + 0x10], ecx
call fcn.0048e490
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add esp, 0xc
lea eax, [ecx + ebx*8]
mov dword [esp + 4], eax
lea eax, [ecx + edi*8]
mov edi, ecx
lea ecx, [ecx + ebx*8]
add ecx, 8
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], eax
test edx, edx
je 0x432763
push edx
call fcn.0048b376
add esp, 4
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 4]
mov dword [ecx], edx
mov ecx, dword [esp + 0x9c]
mov eax, dword [ecx - 0x14]
sub eax, dword [ecx - 0x18]
add eax, edx
mov ecx, dword [esp + 0xa8]
mov dword [ecx - 4], eax
mov ecx, dword [esp + 0x9c]
mov ebx, dword [ecx - 8]
sub ebx, dword [ecx - 0xc]
add edi, dword [ecx - 0x14]
add edi, ebx
sub edi, dword [ecx - 0x18]
mov edx, dword [esi + 4]
test edx, edx
je 0x4327b0
mov ecx, edx
mov edx, dword [edx]
test edx, edx
jne 0x4327a6
jmp 0x4327c6
mov ecx, dword [esi + 8]
cmp dword [ecx], esi
je 0x4327c6
add esi, 8
mov edx, dword [esi]
lea esi, [edx + 8]
mov ecx, dword [edx + 8]
cmp dword [ecx], edx
jne 0x4327ba
add ebx, eax
mov edx, ecx
cmp ecx, dword [esp + 0x2c]
jne 0x4323e7
jmp 0x4327fb
mov dword [esp + 0x10], 0
xor edi, edi
xor ebx, ebx
jmp 0x43244e
mov dword [esp], 0
mov dword [esp + 0x24], 0
jmp 0x4324e3
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], edi
lea esi, [edi + eax*8]
xor edi, edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
mov ecx, 0
add esi, 0x38
je 0x432860
test esi, esi
js 0x432e7c
push esi
call fcn.0048b346
add esp, 4
mov ebx, eax
mov dword [esp + 0x8c], eax
lea edi, [eax + esi]
mov dword [esp + 0x94], edi
push esi
push 0
push eax
call fcn.0048ef90
mov ecx, ebx
add esp, 0xc
mov dword [esp + 0x90], edi
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
lea eax, [eax + esi*8]
add eax, 4
mov dword [ecx], 1
movups xmm0, xmmword [esp + 0x108]
movups xmmword [ecx + 4], xmm0
movdqu xmm0, xmmword [esp + 0xf8]
movdqu xmmword [ecx + 0x14], xmm0
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], 0x34
xor eax, eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], esi
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
sub ebx, eax
mov dword [esp], ecx
add ecx, 0x38
push ebx
push eax
push ecx
call fcn.0048e490
add esp, 0xc
test esi, esi
je 0x432946
add ebx, 0x38
lea eax, [esi - 1]
mov dword [esp + 4], eax
mov edx, dword [esp]
xor edi, edi
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + edi]
mov esi, dword [eax + edi + 4]
sub esi, ecx
add edx, ebx
push esi
push ecx
push edx
call fcn.0048e490
add esp, 0xc
add esi, ebx
mov eax, dword [esp + 0x98]
mov ecx, dword [eax + edi + 0xc]
mov ebx, dword [eax + edi + 0x10]
sub ebx, ecx
mov eax, dword [esp + 0x8c]
add eax, esi
push ebx
push ecx
push eax
call fcn.0048e490
add esp, 0xc
mov eax, dword [esp + 4]
sub eax, 1
jb 0x432936
mov dword [esp + 4], eax
add ebx, esi
mov edx, dword [esp + 0x8c]
add edi, 0x18
jmp 0x4328d7
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x90]
jmp 0x432949
mov ecx, dword [esp]
lea eax, [esp + 0x80]
mov dword [eax], 0x43500001
mov dword [eax + 8], ecx
mov dword [esp], ecx
sub edi, ecx
mov dword [eax + 4], edi
lea ebx, [esp + 0x78]
mov dword [ebx], 1
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xb0]
push 0
push ebx
push ecx
push 0x40
mov ebx, dword [esp + 0x18]
push ebx
push esi
push eax
call edi
xor esi, esi
test eax, eax
je 0x432d6c
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pcmpeqd xmm0, xmm0
lea eax, [esp + 0x50]
movdqa xmmword [eax + 0x10], xmm0
movdqa xmmword [eax], xmm0
lea ecx, [esp + 0xc0]
mov dword [ecx], 0xffffffff
xor edi, edi
push esi
push ecx
push 0x20
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432d73
cmp dword [esp + 0xc0], 0x20
mov eax, dword [esp]
jne 0x432d92
mov esi, ebx
xor edi, edi
push edi
push edi
push dword [esp + 0x64]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
xor eax, eax
dec eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x58], edi
je 0x432d78
mov eax, dword [esp + 0x14]
lea eax, [eax*8]
xor ebx, ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov dword [esp + 4], edi
mov dword [esp + 0xc0], 0xffffffff
push 0
lea eax, [esp + 0xc4]
push eax
push 0xc
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
test eax, eax
je 0x432d7a
cmp dword [esp + 0xc0], 0xc
jne 0x432d7a
cmp ebx, dword [esp + 0x4c]
je 0x432aa3
mov eax, dword [esp + 0x40]
mov dword [ebx + 8], eax
movq xmm0, qword [esp + 0x38]
movq qword [ebx], xmm0
add ebx, 0xc
mov dword [esp + 0x48], ebx
jmp 0x432b66
mov ecx, dword [esp + 0x44]
sub ebx, ecx
mov eax, ebx
sar eax, 2
imul edi, eax, 0xaaaaaaab
lea eax, [edi + 1]
cmp eax, 0x15555556
jae 0x432e6a
lea esi, [edi + edi]
cmp esi, eax
cmovb esi, eax
cmp edi, 0xaaaaaaa
mov eax, 0x15555555
cmovae esi, eax
test esi, esi
mov dword [esp], ecx
je 0x432b03
cmp esi, 0x15555556
jae 0x432e65
lea eax, [esi*4]
lea eax, [eax + eax*2]
push eax
call fcn.0048b346
add esp, 4
mov ecx, dword [esp]
jmp 0x432b05
xor eax, eax
lea edx, [edi + edi*2]
mov dword [esp + 0xc], edx
lea edi, [eax + edx*4]
mov edx, dword [esp + 0x40]
mov dword [edi + 8], edx
movq xmm0, qword [esp + 0x38]
movq qword [edi], xmm0
sub edi, ebx
test ebx, ebx
jle 0x432b39
push ebx
push ecx
push edi
mov ebx, eax
call fcn.0048e490
mov eax, ebx
mov ecx, dword [esp + 0xc]
add esp, 0xc
lea edx, [esi + esi*2]
lea edx, [eax + edx*4]
mov esi, dword [esp + 0xc]
lea ebx, [eax + esi*4]
add ebx, 0xc
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], edx
test ecx, ecx
je 0x432b62
push ecx
call fcn.0048b376
add esp, 4
mov esi, dword [esp + 8]
mov edi, dword [esp + 4]
cmp dword [esp + 0x38], 0x43500001
jne 0x432b7c
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
inc edi
cmp edi, dword [esp + 0x58]
jb 0x432a41
xor ebx, ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x432d78
push ebx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
dec ecx
mov dword [esp + 0xf0], ecx
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xe0], xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
mov eax, esi
lea esi, [esp + 0xbc]
mov dword [esi], ecx
push ebx
push esi
push 0x34
lea ecx, [esp + 0xcc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432d68
cmp dword [esp + 0xbc], 0x34
jne 0x432d68
cmp dword [esp + 0xe8], 0x34
jne 0x432d68
mov ecx, dword [esp + 0x10]
lea eax, [ecx + 0x34]
mov dword [esp + 0xe8], eax
xor ebx, ebx
push ebx
push ebx
push ecx
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0xbc], 0xffffffff
push ebx
push esi
push 0x34
lea eax, [esp + 0xcc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x432d68
cmp dword [esp + 0xbc], 0x34
jne 0x432d68
xor ebx, ebx
push ebx
push ebx
push dword [esp + 0xf0]
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x34]
xor ecx, ecx
dec ecx
mov dword [eax], ecx
mov dword [esp + 0xbc], ecx
push ebx
push esi
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432d68
cmp dword [esp + 0xbc], 4
jne 0x432d68
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x34], eax
jne 0x432d68
mov edi, dword [esp + 0xa4]
mov dword [esp + 0xbc], 0xffffffff
push 0
push esi
push dword [esp + 0x20]
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
test eax, eax
je 0x432d68
mov eax, dword [esp + 0x18]
cmp dword [esp + 0xbc], eax
jne 0x432d68
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xa8]
cmp ecx, edi
je 0x432d23
mov edx, dword [esp + 0x34]
lea eax, [eax + edx*8]
add eax, 4
add dword [edi], eax
add dword [edi + 4], eax
add edi, 8
cmp edi, ecx
jne 0x432d09
mov eax, dword [esp + 0xe8]
mov edi, dword [esp + 0xa4]
add eax, 4
xor ecx, ecx
push ecx
push ecx
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x34]
shl ebx, 3
mov dword [esp + 0xbc], 0xffffffff
xor eax, eax
push eax
push esi
push ebx
push edi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
cmp dword [esp + 0xbc], ebx
sete bl
and bl, al
mov edi, ebx
jmp 0x432d7a
xor ebx, ebx
mov eax, dword [esp]
jmp 0x432d94
mov eax, dword [esp]
jmp 0x432d92
xor edi, edi
mov eax, dword [esp + 0x44]
test eax, eax
je 0x432d8b
push eax
call fcn.0048b376
add esp, 4
mov eax, dword [esp + 0x8c]
mov ebx, edi
test eax, eax
je 0x432da1
push eax
call fcn.0048b376
add esp, 4
mov esi, dword [esp + 0x98]
test esi, esi
je 0x432e09
mov edi, dword [esp + 0x9c]
cmp edi, esi
je 0x432df7
mov dword [esp + 4], ebx
mov eax, dword [edi - 0xc]
test eax, eax
je 0x432dce
mov dword [edi - 8], eax
push eax
call fcn.0048b376
add esp, 4
lea ebx, [edi - 0x18]
mov eax, dword [edi - 0x18]
test eax, eax
je 0x432de4
mov dword [edi - 0x14], eax
push eax
call fcn.0048b376
add esp, 4
mov edi, ebx
cmp ebx, esi
jne 0x432dbb
mov eax, dword [esp + 0x98]
mov ebx, dword [esp + 4]
jmp 0x432df9
mov eax, esi
mov dword [esp + 0x9c], esi
push eax
call fcn.0048b376
add esp, 4
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x432e1d
push eax
call fcn.0048b376
add esp, 4
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
cmp eax, 2
jb 0x432e38
call fcn.0046eab0
push esi
call fcn.00471760
add esp, 4
mov ecx, dword [esp + 0x118]
xor ecx, ebp
call fcn.0048b980
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor esi, esi
jmp 0x432304
lea ecx, [esp + 0xa4]
call fcn.004b5a40
call fcn.0049f050
lea ecx, [esp + 0x44]
call fcn.004b5a40
lea ecx, [esp + 0x50]
call fcn.004b5a40
lea ecx, [esp + 0x8c]
call fcn.004b5a40
int3