Function at 0x42f809
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4d8
mov eax, dword [0x462040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x28], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], bl
mov dword [ebp - 0x14], 0x32
mov dword [ebp - 0x10], 0x34
mov dword [ebp - 0xc], 0x4094f4
cmp byte [0x462578], bl
je 0x42faa5
cmp dword [ebp + 8], 2
mov esi, 0x498
jne 0x42f8ef
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
cdq
idiv esi
test eax, eax
je 0x42faa5
mov edx, dword [ebp - 0x28]
cmp dword [ecx + 0x490], edx
je 0x42f88a
inc ebx
add ecx, esi
cmp ebx, eax
jb 0x42f876
jmp 0x42faa5
lea esi, [ecx + 0x7c]
mov ecx, 0x4624d4
call fcn.0045ea8e
shr eax, 4
test al, 1
je 0x42f8b3
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push esi
push eax
push 0x409528
call fcn.00438d66
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.004592b4
lea esi, [ebp - 0x14]
lea eax, [ebp - 0x21]
mov edx, esi
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00459767
cmp byte [ebp - 0x21], 0
jne 0x42f8e1
add esi, 0xc
lea eax, [ebp - 8]
cmp esi, eax
jne 0x42f8c0
jmp 0x42f8e2
int3
push ebx
mov ecx, edi
call fcn.004374cf
jmp 0x42faa5
push esi
lea eax, [ebp - 0x4d4]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x45c], ebx
lea eax, [ebp - 0x454]
mov dword [ebp - 0x458], ebx
push 0x410
push ebx
push eax
call sub.ntdll.dll_memset
xor eax, eax
mov dword [ebp - 0x44], ebx
add esp, 8
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x4d4]
mov ecx, edi
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043745e
cmp dword [eax], ebx
jl 0x42faa5
mov ecx, dword [edi]
mov eax, dword [edi + 4]
sub eax, ecx
cdq
idiv esi
lea esi, [ecx - 0x498]
imul eax, eax, 0x498
push 9
push 0x418
add esi, eax
mov dword [ebp - 0x2c], esi
lea eax, [esi + 0x78]
push eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jns 0x42f99b
lea edi, [esi + 0x7c]
mov eax, dword [ebp - 0x28]
push 6
pop ecx
mov esi, 0x40ccf0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0x2c]
mov dword [eax], 0x18
jmp 0x42f99e
lea eax, [esi + 0x78]
mov eax, dword [eax]
xor ecx, ecx
push ebx
push esi
shr eax, 1
push 0x1e
push ebx
mov word [esi + eax*2 + 0x7e], cx
call dword [sym.imp.ntdll.dll_RtlCaptureStackBackTrace]
lea ecx, [esi + 0x7c]
mov word [esi + 0x494], ax
lea edx, [ebp - 0x38]
call fcn.004592b4
lea edi, [ebp - 0x14]
lea eax, [ebp - 0x21]
mov edx, edi
push eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.00459767
cmp byte [ebp - 0x21], bl
jne 0x42f9e7
add edi, 0xc
lea eax, [ebp - 8]
cmp edi, eax
jne 0x42f9c9
cmp dword [ebp + 8], ebx
jne 0x42fa25
mov eax, dword [0x46257c]
cmp eax, dword [ebp - 0x20]
jne 0x42f9f7
int3
mov ecx, 0x4624d4
call fcn.0045ea8e
shr eax, 4
test al, 1
je 0x42fa20
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x7c]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x40954c
call fcn.00438d66
mov eax, dword [ebp - 0x20]
jmp 0x42fa99
cmp dword [ebp + 8], 1
jne 0x42fa9f
mov eax, dword [0x46257c]
cmp eax, dword [ebp - 0x20]
jne 0x42fa36
int3
cmp eax, dword [ebp + 0x10]
jne 0x42fa3c
int3
mov edi, 0x4624d4
mov ecx, edi
call fcn.0045ea8e
shr eax, 4
test al, 1
je 0x42fa96
lea eax, [ebp + 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x28], eax
lea eax, [esi + 0x7c]
push eax
push 0x438dc0
push 0x407908
lea eax, [ebp - 0x2c]
push eax
push 0x438db0
push 0x407900
lea eax, [ebp - 0x28]
push eax
push 0x438db0
push 0x4078fc
push 3
push 0x409574
push edi
push ebx
call fcn.00424b16
add esp, 0x34
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x490], eax
cmp byte [ebp - 0x21], bl
je 0x42faa5
int3
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461687
leave
ret 0xc