Function at 0x501e20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578a2f
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 4], 0
mov al, byte [ebp + 0x24]
mov byte [ebp - 0x19], al
lea ecx, [ebp - 0x3c]
call fcn.00402fc0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x28], 0
je 0x501e7f
mov ecx, dword [ebp + 0x28]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00403940
jmp 0x501ec7
lea edx, [ebp - 0xe8]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
call fcn.005014f0
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x144]
push edx
lea ecx, [ebp - 0x3c]
call fcn.00402bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe8]
call fcn.00403230
lea ecx, [ebp - 0x3c]
call fcn.00408b9e
movzx eax, al
test eax, eax
je 0x501ef6
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00403230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403230
jmp 0x502453
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp - 0x13c]
call fcn.00502fa0
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402bb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x104]
call fcn.00403230
mov byte [ebp - 0x105], 0x5c
mov byte [ebp - 0x106], 0x2f
lea edx, [ebp - 0x105]
push edx
lea eax, [ebp - 0x106]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040f3e0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x118]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040f440
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
call fcn.00421270
add esp, 0x18
lea ecx, [ebp + 8]
call fcn.00408b8c
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0040895a
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x501fb9
push 0x58ceb8
lea ecx, [ebp + 8]
call fcn.00419fc0
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp + 8]
call fcn.0041b4f0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
call fcn.005004f0
test eax, eax
jne 0x5020bb
lea ecx, [ebp - 0x3c]
call fcn.00408b8c
sub eax, 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040895a
movsx ecx, byte [eax]
cmp ecx, 0x5c
jne 0x5020bb
push 0
lea ecx, [ebp + 8]
call fcn.00403810
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x502067
xor edx, edx
je 0x502045
push 0x420570
lea ecx, [ebp - 0x3c]
call fcn.00403810
push eax
push str.failed_to_create_folder_:
push 0x5fe1e0
call fcn.0040c410
add esp, 8
push eax
call fcn.0040c410
add esp, 8
mov ecx, eax
call fcn.0041bab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00403230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403230
jmp 0x502453
xor eax, eax
je 0x50209b
push 0x420570
lea ecx, [ebp - 0x3c]
call fcn.00403810
push eax
push str.create_folder_:
push 0x5fe1e0
call fcn.0040c410
add esp, 8
push eax
call fcn.0040c410
add esp, 8
mov ecx, eax
call fcn.0041bab0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00403230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403230
jmp 0x502453
push str.ck_WS
lea ecx, [ebp - 0x11c]
call fcn.0041a130
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x154], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x154]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x10]
call fcn.004f8fd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x11c]
call fcn.0044fc20
lea ecx, [ebp - 0x40]
call fcn.00438030
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x138]
push edx
call fcn.00565e50
add esp, 8
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x15c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x15c]
call fcn.00406410
push eax
push 0x58bf58
lea ecx, [ebp - 0x40]
push ecx
call fcn.004386c0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x138]
call fcn.00406210
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x10]
call fcn.004f9010
lea ecx, [ebp - 0x40]
call fcn.0041aed0
mov ecx, dword [ebp - 0x13c]
mov ecx, dword [ecx + 0x10]
call fcn.005002e0
push 1
lea ecx, [ebp - 0xcc]
call fcn.004333e0
mov byte [ebp - 4], 7
push str.Chinese_simplified
push 0
call fcn.00544bcc
add esp, 8
push 0x40
push 0x20
lea ecx, [ebp + 8]
call fcn.00403810
push eax
lea ecx, [ebp - 0xcc]
call fcn.00503c80
push 0x58ce5c
push 0
call fcn.00544bcc
add esp, 8
lea ecx, [ebp - 0xcc]
call fcn.00433490
movzx edx, al
test edx, edx
jne 0x50225f
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax + 0x10]
call fcn.00500310
xor ecx, ecx
je 0x502224
push 0x420570
lea edx, [ebp + 8]
push edx
push str.failed_to_output_file_:
push 0x5fe1e0
call fcn.0040c410
add esp, 8
push eax
call fcn.0040c640
add esp, 8
mov ecx, eax
call fcn.0041bab0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xcc]
call fcn.0041b960
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0044fc20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00403230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403230
jmp 0x502453
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x50227f
push 0
mov ecx, dword [ebp - 0x13c]
add ecx, 0x14
call fcn.0040895a
mov dword [ebp - 0x160], eax
jmp 0x502295
push 0
mov ecx, dword [ebp - 0x13c]
add ecx, 0x30
call fcn.0040895a
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x13c]
add ecx, 0x14
call fcn.004032f0
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x13c]
mov ecx, dword [edx]
call fcn.005004f0
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x5022d2
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x164], ecx
jmp 0x5022db
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x164], edx
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0xcc]
call fcn.004332b0
lea ecx, [ebp - 0xcc]
call fcn.00503cd0
xor eax, eax
je 0x50232a
lea ecx, [ebp - 0x3c]
call fcn.00403810
push eax
push str.extract_:
push 0x5fe1e0
call fcn.0040c410
add esp, 8
push eax
call fcn.0040c410
add esp, 8
xor ecx, ecx
je 0x50240a
mov edx, dword [ebp - 0x13c]
mov esi, dword [edx]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [eax]
call fcn.005014b0
add eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
adc ecx, edx
mov edx, dword [ebp - 0x44]
xor esi, esi
add eax, edx
adc ecx, esi
push ecx
push eax
push 0x5cbf58
mov eax, dword [ebp - 0x13c]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x13c]
mov ecx, dword [ecx]
call fcn.005014b0
add eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
adc ecx, edx
push ecx
push eax
push 0x4293c9
push 0x58ce2c
mov edx, dword [ebp - 0x18]
push edx
push str.B_:
mov eax, dword [ebp - 0x20]
push eax
push 0x58ce1c
mov ecx, dword [ebp - 0x44]
push ecx
push 0x4ffcd0
push 0x5cbf58
push 0x5fe1e0
call fcn.0040c410
add esp, 8
mov ecx, eax
call fcn.0042a461
mov ecx, eax
call fcn.00409820
push eax
call fcn.0040c410
add esp, 8
mov ecx, eax
call fcn.00409820
push eax
call fcn.0040c410
add esp, 8
mov ecx, eax
call fcn.00409820
push eax
call fcn.0040c410
add esp, 8
mov ecx, eax
call fcn.0042a461
mov ecx, eax
call fcn.004f5ff0
push eax
call fcn.0040c410
add esp, 8
mov ecx, eax
call fcn.004f5ff0
xor edx, edx
je 0x50241d
push 0x420570
mov ecx, 0x5fe1e0
call fcn.0041bab0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xcc]
call fcn.0041b960
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.0044fc20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.00403230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00403230
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 0x24