Function at 0x47a050
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0xec8980]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 1
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov dword [esi + 0x400d8], 0xffffffff
mov eax, dword [edi + 0x40]
mov ecx, dword [eax + edx*8]
mov eax, dword [eax + edx*8 + 4]
mov dword [esi + 0x400b0], ecx
mov dword [esi + 0x400b4], eax
jne 0x47a099
or ecx, eax
je 0x47a340
mov ecx, dword [esi]
cmp dword [ecx + 0x40068], 0
je 0x47a340
push edx
push edi
call fcn.00479f20
mov ecx, dword [esi]
mov dword [esi + 0x70], eax
cmp byte [ecx], 0x65
jne 0x47a0c7
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax + ecx*4]
jmp 0x47a122
add ecx, 0xc
mov edx, 0xe9afc0
mov eax, ecx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x47a0f1
test bl, bl
je 0x47a0ed
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x47a0f1
add eax, 2
add edx, 2
test bl, bl
jne 0x47a0d1
xor eax, eax
jmp 0x47a0f6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47a0fe
xor edi, edi
jmp 0x47a10d
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47a101
sub ecx, edx
lea edi, [ecx + 1]
mov ecx, dword [esi + 0x68]
lea eax, [esi + 0xb0]
push eax
push dword [esi + 0x6c]
call fcn.00479c00
lea ecx, [edi + eax]
mov edx, dword [esi + 0x8c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x47a128
mov edx, dword [esi + 0x84]
mov ecx, dword [esi + 0x88]
call fcn.0045d0f0
push dword [esi + 0x90]
mov ebx, dword [sym.imp.USER32.dll_CharToOemW]
push dword [esi + 0x84]
call ebx
cmp dword [esi + 0x70], 0
je 0x47a2cc
mov eax, dword [esi]
mov dl, byte [eax]
cmp dl, 0x74
je 0x47a2cc
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov eax, dword [eax + 0x58]
cmp dword [eax + ecx*4], 0
je 0x47a1a8
cmp dl, 0x65
je 0x47a2cc
mov ecx, dword [esi + 0x84]
call fcn.0045d2f0
push dword [esi + 0x84]
call fcn.00499c37
add esp, 4
jmp 0x47a2cc
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x78]
mov eax, dword [eax + 8]
call eax
mov cl, al
mov byte [ebp - 9], cl
test cl, cl
je 0x47a244
mov ecx, dword [esi]
cmp dword [ecx + 0x40080], 0
jne case.0x47a219.110
cmp dword [ecx + 0x4007c], 0
jne case.0x47a219.98
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x4c]
mov ebx, dword [eax + edx*8]
mov edi, dword [eax + edx*8 + 4]
mov eax, dword [ecx + 0x40]
mov ecx, dword [esi + 4]
push edi
push ebx
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
push dword [esi + 0x90]
call dword [ebp - 8]
movsx eax, al
add eax, 0xffffff9f
cmp eax, 0x12
ja case.0x47a219.98
movzx eax, byte [eax + 0x47a3cc]
jmp dword [eax*4 + 0x47a3b8]
mov eax, dword [esi]
mov dword [eax + 0x4007c], 1
jmp case.0x47a219.98
mov eax, dword [esi]
mov dword [eax + 0x40080], 1
mov dword [esi + 0x70], 0
mov cl, byte [ebp - 9]
cmp dword [esi + 0x70], 0
je 0x47a2c6
test cl, cl
je 0x47a257
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x78]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x84]
call fcn.0045d2f0
push 0
lea eax, [ebp - 8]
push eax
push 0x180
push 0x40
push 0x8301
push dword [esi + 0x84]
call fcn.0049c532
mov ecx, dword [ebp - 8]
or edx, 0xffffffff
add esp, 0x18
test eax, eax
cmovne ecx, edx
mov dword [esi + 0x80], ecx
test ecx, ecx
jns 0x47a2c6
cmp dword [0xecedf8], 0
jne 0x47a35f
jmp 0x47a36b
sub esp, 8
mov ecx, esi
call fcn.0047ba10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00488f09
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.USER32.dll_CharToOemW]
cmp dword [ebp + 8], 0
je 0x47a2ea
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov eax, dword [eax + 0x40]
cmp dword [eax + ecx*8 + 4], 0
jl 0x47a340
jg 0x47a2ea
cmp dword [eax + ecx*8], 0
jbe 0x47a340
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov eax, dword [ecx + 0x58]
cmp dword [eax + edx*4], 0
je 0x47a300
mov eax, dword [esi]
cmp byte [eax], 0x78
jne 0x47a340
lea eax, [esi + 0xb0]
push eax
push edx
call fcn.00479c00
mov edx, dword [esi + 0xa8]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx], cl
lea edx, [edx + 1]
test cl, cl
jne 0x47a313
mov edx, dword [esi + 0xa0]
mov ecx, dword [esi + 0xa4]
call fcn.0045d0f0
push dword [esi + 0xac]
push dword [esi + 0xa0]
call ebx
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
cmp dword [eax + 0x40068], 0
pop ebx
setne al
xor ecx, ebp
call fcn.00488f09
mov esp, ebp
pop ebp
ret 4
push 1
push 0xecedb8
call fcn.0048ae7b
mov ecx, 0x40000
call fcn.004783a0
mov ecx, 0x40000
mov ebx, eax
call fcn.004783a0
push dword [esi + 0x88]
mov edi, eax
push str.ERROR:_cant_open_file__s
push ebx
call fcn.0042e890
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.0045d2b0
push edi
push 0xea01f4
call fcn.00437440
add esp, 8
push 2
call fcn.004984c3
nop dword [eax]
and byte [edx - 0x5dc5ffb9], ah
inc edi
add byte [ecx + 0x2e0047a2], ch
mov byte [0xa2410047], al
inc edi
add byte [eax], al
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add dword [esp + eax], eax
add al, byte [ebx + eax]
int3