Function at 0x4371b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x456f10
push 0x44bffc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x550
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x184], esi
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x178], esi
or edi, 0xffffffff
mov dword [ebp - 0x180], edi
mov dword [ebp - 0x170], esi
mov dword [ebp - 4], esi
push 0x104
call fcn.0044c0d4
add esp, 4
mov ebx, eax
mov dword [ebp - 0x168], ebx
cmp ebx, esi
jne 0x43723a
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x100
call fcn.0044c0d4
add esp, 4
mov dword [ebp - 0x16c], eax
cmp eax, esi
jne 0x437259
mov dword [ebp - 4], edi
jmp 0x4377eb
push 0x100
call fcn.0044c0d4
add esp, 4
mov dword [ebp - 0x178], eax
cmp eax, esi
jne 0x437278
mov dword [ebp - 4], edi
jmp 0x4377eb
push 0x100
call fcn.0044c0d4
add esp, 4
mov dword [ebp - 0x184], eax
cmp eax, esi
jne 0x437297
mov dword [ebp - 4], edi
jmp 0x4377eb
push 0x104
call fcn.0044c0d4
add esp, 4
mov dword [ebp - 0x164], eax
cmp eax, esi
jne 0x4372b6
mov dword [ebp - 4], edi
jmp 0x4377eb
mov edi, dword [ebp + 0xc]
and edi, 0x20000
mov dword [ebp - 0x55c], edi
mov eax, edi
neg eax
sbb al, al
and al, 0x22
add al, 0x20
mov byte [ebp - 0x160], al
mov esi, dword [ebp + 8]
lea eax, [esi + 0x1c]
mov dword [ebp - 0x560], eax
mov cl, byte [esi + 0x14]
push ecx
mov edx, dword [esi + 0x10]
push edx
mov ecx, dword [ebp - 0x160]
push ecx
push eax
call fcn.00433d70
mov dword [ebp - 0x170], eax
test eax, eax
je 0x437315
mov ecx, dword [0x475eb4]
test ecx, ecx
jne 0x437315
mov cl, byte [eax + 0x28]
test cl, cl
jne 0x43771d
mov dword [ebp - 0x17c], 0x104
mov ecx, 0x41
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
lea edi, [esi + 0x3c]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x17c]
push eax
push ebx
add esi, 0x7c
push esi
mov ecx, dword [ebp - 0x560]
push ecx
push edi
call fcn.00440430
test eax, eax
jne 0x4373cb
mov eax, dword [0x477368]
test eax, eax
je 0x4377ba
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x460dd4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x104
push ebx
push 0x464964
push ebx
push 0x460dcc
call dword [sym.imp.KERNEL32.dll_GetProfileStringA]
test eax, eax
jne 0x4373cb
mov dword [ebp - 4], 0xffffffff
jmp 0x4377eb
mov edi, ebx
or esi, 0xffffffff
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x437602
push 0x460dc4
push ebx
call fcn.00449570
test eax, eax
je 0x437594
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x180], edi
cmp edi, esi
jne 0x43754d
mov edi, dword [ebp - 0x178]
push edi
mov eax, dword [ebp - 0x16c]
push eax
push 0
push 0
push ebx
call fcn.0044c925
add esp, 0x14
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, dword [ebp - 0x16c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x47742c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x16c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x180], eax
or esi, 0xffffffff
cmp eax, esi
je 0x4374d3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x180], esi
jmp 0x43751b
lea ecx, [ebp - 0x174]
push ecx
mov edi, dword [ebp - 0x164]
push edi
push 0x104
push 0
mov edx, dword [ebp - 0x16c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x437602
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x180], eax
cmp eax, 0xffffffff
jne 0x437544
mov dword [ebp - 4], eax
jmp 0x4377eb
mov edi, dword [ebp - 0x180]
or esi, 0xffffffff
push 0
push 0
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x17c]
push ecx
push 0x104
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x180], esi
cmp dword [ebp - 0x17c], 0x104
je 0x437594
mov dword [ebp - 4], esi
jmp 0x4377eb
mov edi, dword [ebp - 0x178]
push edi
mov edx, dword [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x184]
push eax
push 0
push ebx
call fcn.0044c925
add esp, 0x14
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, dword [ebp - 0x16c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x184]
cmp byte [eax], 0
je 0x43760a
lea ecx, [ebp - 0x15c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x180], eax
or esi, 0xffffffff
cmp eax, esi
jne 0x437675
mov dword [ebp - 4], esi
jmp 0x4377eb
mov edi, dword [0x47742c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x16c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x15c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x180], eax
or esi, 0xffffffff
cmp eax, esi
je 0x437684
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x180], esi
jmp 0x4376cc
lea ecx, [ebp - 0x174]
push ecx
mov edi, dword [ebp - 0x164]
push edi
push 0x104
push 0
mov edx, dword [ebp - 0x16c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0x437602
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x437711
push ebx
call fcn.00448a90
mov ecx, dword [ebp - 0x170]
cmp eax, dword [ecx + 0x32]
je 0x437711
mov edx, ecx
test byte [edx + 0x27], 0x10
je 0x4376ff
mov eax, dword [0x47735c]
push eax
push ebx
call fcn.00449570
test eax, eax
jne 0x437711
push ebx
call fcn.00448a90
push eax
call fcn.00432170
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x170]
mov edi, dword [ebp - 0x55c]
test eax, eax
je 0x437731
mov byte [eax + 0x29], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4377eb
push 0x460db8
push ebx
call fcn.00449570
test eax, eax
je 0x43774c
mov dword [ebp - 4], 0xffffffff
jmp 0x4377eb
push ebx
call fcn.00448a90
push eax
call fcn.00432170
mov dword [ebp - 0x170], eax
test eax, eax
je 0x43776f
mov byte [eax + 0x29], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x4377eb
push ebx
call fcn.00444210
mov dword [ebp - 0x170], eax
test eax, eax
je 0x4377ba
mov byte [eax + 0x29], 1
or byte [eax + 0x27], 2
mov eax, dword [0x477378]
test eax, eax
je 0x4377ba
test edi, edi
je 0x4377a7
mov ecx, dword [ebp - 0x170]
mov byte [ecx + 0x22], 0x42
mov dword [ebp - 4], 0xffffffff
jmp 0x4377eb
test dword [ebp + 0xc], 0x40000
je 0x4377ba
mov edx, dword [ebp - 0x170]
mov byte [edx + 0x22], 0x41
mov dword [ebp - 4], 0xffffffff
jmp 0x4377eb
mov eax, dword [ebp - 0x180]
cmp eax, 0xffffffff
je 0x4377fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x475eb8]
test eax, eax
je 0x437990
test ebx, ebx
je 0x437990
mov ecx, 7
mov esi, 0x460d98
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
push 0
lea edx, [ebp - 0x17c]
push edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
mov eax, dword [0x460c84]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x14]
test cl, cl
mov ecx, 0x460d3c
jne 0x43785c
mov ecx, 0x460d34
push ecx
mov ecx, dword [eax + 0x10]
push ecx
add eax, 0x1c
push eax
push 0x460d10
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
lea edx, [ebp - 0x17c]
push edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
mov eax, dword [0x460c84]
push eax
call esi
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x437925
lea ecx, [ebp - 0x554]
push ecx
push 0
push 0
xor edx, edx
mov dx, word [eax]
push edx
call fcn.00432ab0
lea eax, [ebp - 0x4f2]
push eax
push 0x460d00
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x17c]
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
mov edx, dword [0x460c84]
push edx
call esi
lea eax, [ebp - 0x492]
push eax
push 0x460d88
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x17c]
push ecx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
mov edx, dword [0x460c84]
push edx
call esi
jmp 0x43795d
mov ecx, 0xa
mov esi, 0x460cb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0
lea eax, [ebp - 0x17c]
push eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
mov ecx, dword [0x460c84]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, ebx
mov ax, word [0x460cb4]
mov word [edx], ax
mov cl, byte [0x460cb6]
mov byte [edx + 2], cl
push 0
lea edx, [ebp - 0x17c]
push edx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
mov eax, dword [0x460c84]
push eax
call esi
mov eax, dword [ebp - 0x184]
test eax, eax
je 0x4379a3
push eax
call fcn.0044c186
add esp, 4
test ebx, ebx
je 0x4379b0
push ebx
call fcn.0044c186
add esp, 4
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x4379c3
push eax
call fcn.0044c186
add esp, 4
mov eax, dword [ebp - 0x178]
test eax, eax
je 0x4379d6
push eax
call fcn.0044c186
add esp, 4
mov eax, dword [ebp - 0x164]
test eax, eax
je 0x4379e9
push eax
call fcn.0044c186
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8