Function at 0x4250d0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x150c
call fcn.00430cc0
push ebx
push ebp
push esi
push edi
mov ebx, dword [esp + 0x1524]
mov ecx, 0xe6
xor eax, eax
lea edi, [esp + 0x15c]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1530]
mov ecx, dword [esp + 0x1534]
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], ecx
lea edx, [esp + 0x1c]
mov ecx, 0x40a
xor eax, eax
lea edi, [esp + 0x4f4]
xor esi, esi
push edx
rep stosd dword es:[edi], eax
push ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x164], 0x898a
mov dword [esp + 0x4fc], 0x899e
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, esi
je 0x42515c
cmp edi, 0xffffffff
jne 0x425177
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
mov dword [esp + 0x160], eax
jne 0x425177
mov dword [esp + 0x10], esi
jmp 0x425642
cmp edi, esi
je 0x425187
cmp edi, 0xffffffff
je 0x425187
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x1520]
mov ecx, ebp
mov eax, dword [ebp]
call dword [eax]
test eax, eax
jne 0x4251b0
mov dword [ebp + 0x2054], esi
mov dword [esp + 0x10], esi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
mov ecx, 0x50
lea esi, [esp + 0x1c]
lea edi, [esp + 0x270]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov ecx, ebp
push edi
call fcn.0040e760
cmp dword [esp + 0x1528], edi
je 0x425276
mov edx, dword [esp + 0x152c]
mov eax, ebx
mov cl, byte [edx]
cmp cl, byte [ebx]
jne 0x4251fc
sub edx, ebx
test cl, cl
je 0x4251fc
cmp byte [eax], 0
je 0x425210
mov cl, byte [edx + eax + 1]
inc eax
cmp cl, byte [eax]
je 0x4251ea
cmp byte [eax], 0
je 0x425210
lea ecx, [esp + 0x16c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test byte [esp + 0x1c], 0x10
jne 0x425276
lea edx, [esp + 0x48]
lea eax, [esp + 0x16c]
push edx
push eax
call fcn.00431340
add esp, 8
test eax, eax
je 0x425276
lea ecx, [esp + 0x16c]
push 0x446350
push ecx
call fcn.00431340
add esp, 8
test eax, eax
je 0x425276
lea edx, [esp + 0x16c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x16b]
lea eax, [esp + eax + 0x16b]
cmp cl, 0x5c
je 0x425273
mov cl, byte [eax - 1]
dec eax
cmp cl, 0x5c
jne 0x42526a
mov byte [eax], 0
mov eax, dword [ebp]
lea ecx, [esp + 0x15c]
push 0x398
push ecx
mov ecx, ebp
call dword [eax + 0xb4]
test eax, eax
jne 0x4252a9
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
mov eax, dword [ebp + 0x5168]
xor esi, esi
cmp eax, edi
jne 0x4252e5
cmp dword [ebp + 0x2054], edi
je 0x425357
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x4ee4], edi
jne 0x4252dd
mov eax, dword [0x4584f0]
mov edx, esi
inc esi
cmp edx, eax
jg 0x425357
cmp dword [ebp + 0x5168], edi
je 0x4252b5
cmp dword [ebp + 0x5170], edi
je 0x4252fe
mov dword [esp + 0x10], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
mov eax, dword [ebp + 0x4ee4]
cmp eax, edi
je 0x42534f
cmp eax, 0xb7
je 0x425330
cmp eax, 0x50
je 0x425330
mov ecx, dword [ebp + 0x516c]
xor eax, eax
cmp ecx, edi
pop edi
setne al
pop esi
pop ebp
mov dword [esp + 4], eax
pop ebx
add esp, 0x150c
ret
cmp dword [ebp + 0x516c], edi
jne 0x425368
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
cmp dword [ebp + 0x516c], edi
jne 0x425368
mov dword [esp + 0x10], edi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
test byte [esp + 0x1c], 0x10
je 0x425386
pop edi
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x425586
cmp eax, 0xffffffff
je 0x425586
push edi
push edi
push edi
call fcn.00417610
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [esp + 0x518], eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
cmp dword [ebp + 0x5170], edi
jne 0x42550c
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push edi
push ecx
lea edx, [esp + 0x524]
push 0xfc0
push edx
push eax
call ebx
test eax, eax
je 0x425519
mov eax, dword [esp + 0x18]
mov edx, eax
cmp eax, edi
mov dword [esp + 0x4f8], edx
je 0x42543e
mov edx, dword [esp + 0x518]
lea ecx, [esp + 0x51c]
push eax
push ecx
push edx
mov dword [esp + 0x51c], edi
call fcn.00417610
mov edx, dword [esp + 0x504]
add esp, 0xc
mov dword [esp + 0x518], eax
jmp 0x425449
mov dword [esp + 0x510], 1
cmp dword [ebp + 0x561c], edi
je 0x4254d0
mov eax, dword [ebp + 0x5620]
cmp eax, 1
jne 0x425492
mov ecx, dword [ebp + 0x562c]
cmp ecx, edi
je 0x425492
push edx
call fcn.004180e0
mov dword [esp + 0x508], eax
mov eax, dword [esp + 0x4f8]
push 1
lea ecx, [esp + 0x520]
push eax
push ecx
mov ecx, dword [ebp + 0x562c]
call fcn.00418b40
jmp 0x4254d0
cmp eax, edi
jne 0x4254d0
mov ecx, dword [ebp + 0x5628]
cmp ecx, edi
je 0x4254d0
push edx
call fcn.004180e0
mov edx, dword [esp + 0x4f8]
mov dword [esp + 0x508], eax
lea eax, [esp + 0x51c]
push edx
lea ecx, [esp + 0x520]
push eax
push ecx
mov ecx, dword [ebp + 0x5628]
call fcn.00418100
mov edx, dword [ebp]
lea eax, [esp + 0x4f4]
push 0x1028
push eax
mov ecx, ebp
mov dword [esp + 0x504], edi
call dword [edx + 0xb4]
test eax, eax
je 0x4255ad
cmp dword [esp + 0x510], edi
jne 0x425638
push edi
call esi
jmp 0x4253c6
mov dword [esp + 0x10], 1
jmp 0x425638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esp + 0x4fc], eax
jne 0x425535
mov dword [esp + 0x4fc], 0x1e
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
jne 0x42554f
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
jmp 0x425638
push edi
mov ecx, ebp
call fcn.0040e760
mov eax, dword [ebp]
lea ecx, [esp + 0x4f4]
push 0x1028
push ecx
mov ecx, ebp
call dword [eax + 0xb4]
test eax, eax
jne 0x425638
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
jmp 0x425638
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
mov dword [esp + 0x4fc], eax
jne 0x4255a2
mov dword [esp + 0x4fc], 2
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
test eax, eax
jne 0x4255b9
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
jmp 0x425638
push edi
mov ecx, ebp
call fcn.0040e760
mov eax, dword [ebp]
lea ecx, [esp + 0x4f4]
push 0x1028
push ecx
mov ecx, ebp
call dword [eax + 0xb4]
test eax, eax
jne 0x4255e9
mov dword [ebp + 0x2054], edi
mov dword [esp + 0x10], edi
jmp 0x425638
mov eax, dword [ebp + 0x5168]
xor esi, esi
cmp eax, edi
jne 0x425619
cmp dword [ebp + 0x2054], edi
je 0x4255b3
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x4584f0]
mov edx, esi
inc esi
cmp edx, eax
jg 0x4255b3
cmp dword [ebp + 0x5168], edi
je 0x4255f5
cmp dword [ebp + 0x5170], edi
je 0x425627
mov dword [esp + 0x10], edi
jmp 0x425638
mov ecx, dword [ebp + 0x516c]
xor eax, eax
cmp ecx, edi
setne al
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x425649
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150c
ret