Function at 0x427260
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x607798
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x58]
push str.fixorder_abc.dat
push eax
call fcn.005d2da6
add esp, 8
test eax, eax
jne 0x4272c5
mov eax, dword [esi + 4]
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ebx, [esi + 0x50]
lea edi, [esp + 0x1c]
mov dword [esp + 0x60], 0
call fcn.0041a590
call fcn.0052cab0
mov dword [esp + 0x4c], eax
mov cl, 1
mov byte [eax + 0x21], cl
mov eax, dword [esp + 0x4c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [eax], eax
mov eax, dword [esp + 0x4c]
mov dword [eax + 8], eax
mov dword [esp + 0x50], 0
mov byte [esp + 0x60], cl
lea ecx, [esp + 0x48]
push ecx
mov edx, edi
push edx
push esi
call fcn.00427070
lea ebx, [esp + 0x18]
call fcn.0047a980
mov byte [esp + 0x60], 2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
xor ebx, ebx
cmp eax, ebx
jle 0x42736f
lea edx, [eax - 1]
cmp edx, ebx
jl 0x427607
cmp edx, eax
jg 0x427607
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x42736f
push 0x5c
lea edi, [esp + 0x1c]
call fcn.0040af90
push 0xa
push str.CandOrder_
lea eax, [esp + 0x20]
push eax
call fcn.0040aee0
mov eax, dword [esi + 0x58]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040aee0
call fcn.0052cab0
mov dword [esp + 0x40], eax
mov byte [eax + 0x21], 1
mov eax, dword [esp + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x40]
mov dword [eax], eax
mov eax, dword [esp + 0x40]
mov dword [eax + 8], eax
mov dword [esp + 0x44], ebx
push 1
lea edx, [esp + 0x40]
mov byte [esp + 0x64], 3
mov eax, dword [esp + 0x1c]
push edx
push eax
push esi
call fcn.004269f0
lea edi, [esp + 0x14]
call fcn.0047ac70
push 0xa
push str.CandOrder_
mov ecx, edi
push ecx
mov byte [esp + 0x6c], 4
call fcn.0040aee0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, ebx
jle 0x42741e
lea edx, [eax - 1]
cmp edx, ebx
jl 0x427607
cmp edx, eax
jg 0x427607
movzx eax, word [ecx + edx*2]
cmp ax, 0x5c
je 0x42741e
push 0x5c
call fcn.0040af90
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [esi + 0x58]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040aee0
mov dword [esp + 0x34], ebx
push 1
lea eax, [esp + 0x38]
mov edx, 2
mov byte [esp + 0x64], 5
mov ecx, dword [esp + 0x18]
push eax
lea eax, [edx - 1]
call fcn.0050e580
cmp eax, ebx
jl 0x427740
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x60], 6
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [esp + 0x40]
mov ecx, dword [eax]
mov dword [esp + 0x30], edx
lea edi, [esp + 0x48]
lea edx, [esp + 0x3c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
test edi, edi
mov ebx, dword [esp + 0x4c]
je 0x4274b2
lea eax, [esp + 0x48]
cmp edi, eax
je 0x4274b7
call fcn.005d29f1
cmp dword [esp + 0x30], ebx
je 0x427719
mov eax, dword [esp + 0x24]
test eax, eax
mov ebx, dword [esp + 0x40]
je 0x4274d5
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x4274da
call fcn.005d29f1
cmp dword [esp + 0x28], ebx
je 0x427719
test edi, edi
jne 0x4274ed
call fcn.005d29f1
mov ebx, dword [esp + 0x30]
cmp ebx, dword [edi + 4]
jne 0x4274fb
call fcn.005d29f1
mov esi, dword [esp + 0x30]
add ebx, 0xc
cmp esi, dword [edi + 4]
jne 0x42750c
call fcn.005d29f1
add esi, 0x10
cmp dword [esp + 0x24], 0
jne 0x42751b
call fcn.005d29f1
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
cmp edi, dword [edx + 4]
jne 0x42752d
call fcn.005d29f1
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add edi, 0xc
cmp ecx, dword [eax + 4]
jne 0x427542
call fcn.005d29f1
mov edx, dword [esp + 0x28]
add edx, 0x10
push ebx
mov eax, edi
mov dword [esp + 0x24], edx
call fcn.00415660
add esp, 4
test al, al
je 0x427611
mov eax, ebx
lea edi, [esp + 0x10]
call fcn.0040ab90
mov eax, esi
xor edi, edi
call fcn.0057a810
test eax, eax
jbe 0x4275ce
jmp 0x427580
push 1
push 0x6198d8
lea eax, [esp + 0x18]
push eax
call fcn.0040aee0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4275a4
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4275a9
call fcn.005d29f1
mov ecx, dword [esi + 4]
lea eax, [ecx + edi*4]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
push edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0040aee0
mov eax, esi
add edi, 1
call fcn.0057a810
cmp edi, eax
jb 0x427580
mov edx, dword [esp + 0x10]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4275d7
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x38]
call fcn.0050e710
lea esi, [esp + 0x2c]
call fcn.00428bd0
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
jmp 0x4274a2
push 0x80070057
call fcn.00403650
push ebx
mov eax, edi
call fcn.004223c0
add esp, 4
test al, al
je 0x427657
mov edi, dword [edi]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427627
sub eax, edx
sar eax, 1
push edi
mov ecx, eax
lea esi, [esp + 0x38]
call fcn.0050e710
lea esi, [esp + 0x24]
call fcn.00428bd0
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
jmp 0x4274a2
mov ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.00428e00
add esp, 8
test al, al
jne 0x4276fb
mov eax, ebx
lea edi, [esp + 0x10]
call fcn.0040ab90
mov eax, esi
xor edi, edi
call fcn.0057a810
test eax, eax
jbe 0x4276d3
push 1
push 0x6198d8
lea edx, [esp + 0x18]
push edx
call fcn.0040aee0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4276a9
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4276ae
call fcn.005d29f1
mov eax, dword [esi + 4]
lea eax, [eax + edi*4]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0040aee0
mov eax, esi
add edi, 1
call fcn.0057a810
cmp edi, eax
jb 0x427685
mov edx, dword [esp + 0x10]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4276e0
sub eax, esi
sar eax, 1
push edx
mov ecx, eax
lea esi, [esp + 0x38]
call fcn.0050e710
lea esi, [esp + 0x2c]
call fcn.00428bd0
lea esi, [esp + 0x24]
call fcn.00428bd0
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x2c]
jmp 0x4274a2
mov byte [esp + 0x60], 5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42773e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x42775b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x60], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x427780
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 2
mov eax, dword [esp + 0x40]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x40]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x44]
push ecx
mov edi, esi
call fcn.00428510
mov edx, dword [esp + 0x40]
push edx
call fcn.005d2367
mov byte [esp + 0x64], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4277db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x60], 0
mov eax, dword [esp + 0x4c]
mov edx, dword [eax]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov esi, ecx
push edx
push esi
lea ecx, [esp + 0x44]
push ecx
mov edi, esi
call fcn.00428510
mov edx, dword [esp + 0x4c]
push edx
call fcn.005d2367
mov dword [esp + 0x64], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427839
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4