Function at 0x436630
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x535b70]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0x124], edi
cmp dword [edi + 0x14], 8
jb 0x436659
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4367fd
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4368a2
xor esi, esi
mov dword [ebp - 0x128], 0x100
mov edi, 0x4fe274
mov ebx, eax
lea ecx, [edi + 2]
nop word [eax + eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x436690
mov eax, dword [ebp - 0x124]
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x120], eax
cmp dword [eax + 0x14], 8
jb 0x4366b9
mov eax, dword [eax]
mov dword [ebp - 0x120], eax
test edi, edi
je 0x436744
cmp esi, ebx
jae 0x436744
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004bdca0
mov ecx, 0x4fe274
lea edx, [edi*2 + 0x4fe274]
add esp, 0xc
cmp edx, ecx
je 0x436712
nop
movzx eax, word [ecx]
cmp ax, word [ebp - 0x128]
jae 0x436810
movzx eax, al
add ecx, 2
mov byte [ebp + eax - 0x11c], 1
cmp ecx, edx
jne 0x4366f0
mov edx, dword [ebp - 0x120]
lea ecx, [edx + ebx*2]
lea esi, [edx + esi*2]
cmp esi, ecx
jae 0x436744
mov ebx, 0x100
movzx eax, word [esi]
cmp ax, bx
jae 0x43673d
cmp byte [ebp + eax - 0x11c], 0
jne 0x436851
add esi, 2
cmp esi, ecx
jb 0x436727
mov edi, dword [ebp - 0x124]
mov ecx, dword [edi + 0x10]
mov esi, ecx
xor eax, eax
mov dword [ebp - 0xc], 0
cmp ecx, esi
mov word [ebp - 0x1c], ax
mov eax, esi
mov dword [ebp - 8], 7
cmovb eax, ecx
cmp dword [edi + 0x14], 8
mov ecx, edi
jb 0x436774
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040f880
cmp dword [ebp - 0xc], 0
je 0x4367b7
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4367b7
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.004cf118
add esp, 4
test eax, eax
jne 0x43686c
mov edx, dword [ebp - 8]
inc esi
cmp edx, 8
jb 0x4367f2
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4367e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4368b5
push edx
push ecx
call fcn.004a5a88
add esp, 8
mov eax, dword [edi + 0x10]
cmp esi, eax
jb 0x436680
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a55ed
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x120]
lea ebx, [eax + ebx*2]
lea esi, [eax + esi*2]
cmp esi, ebx
jae 0x436844
mov ecx, edi
mov eax, 0x4fe274
test edi, edi
je 0x43683d
movzx edx, word [esi]
nop
cmp word [eax], dx
je 0x436849
add eax, 2
sub ecx, 1
jne 0x436830
add esi, 2
cmp esi, ebx
jb 0x436820
or esi, 0xffffffff
jmp 0x436855
sub esi, dword [ebp - 0x120]
jmp 0x436853
sub esi, edx
sar esi, 1
cmp esi, 0xffffffff
je 0x436744
mov edi, dword [ebp - 0x124]
mov ecx, dword [edi + 0x10]
jmp 0x43674f
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4368a2
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x436898
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4368b5
push edx
push ecx
call fcn.004a5a88
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a55ed
mov esp, ebp
pop ebp
ret
call fcn.004c687a
int3