Function at 0x401170
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x403ed3
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push esi
push edi
mov eax, dword [0x407018]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
push 0x18
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0x40548c
call dword [sym.imp.MSVCR90.dll_malloc]
xor ebx, ebx
add esp, 4
mov dword [esp + 0x14], eax
mov dword [eax], 0x10
mov dword [eax + 4], ebx
mov dword [esp + 0x488], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x488], 1
lea esi, [esp + 0x2c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], str.NULL
call fcn.00401b10
push 0x405253
push ebx
mov byte [esp + 0x490], 2
call dword [sym.imp.MSVCR90.dll_setlocale]
add esp, 8
mov ebx, 0x405490
mov eax, esi
call fcn.00402080
mov ebx, dword [ebp + 8]
cmp ebx, 1
jg 0x401255
mov eax, dword [edi]
push eax
push str.Usage:__s___D_DIRECTORY__FILE..._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
push 1
call dword [sym.imp.MSVCR90.dll_exit]
push ebx
mov esi, edi
call fcn.00403350
add esp, 4
cmp eax, 0xffffffff
je 0x40128a
cmp eax, 0x44
jne 0x40127a
mov ecx, dword [0x4088fc]
inc dword [0x4076bc]
mov dword [esp + 0x10], ecx
push ebx
mov esi, edi
call fcn.00403350
add esp, 4
cmp eax, 0xffffffff
jne 0x401265
mov edx, dword [esp + 0x10]
push edx
lea esi, [esp + 0x18]
call fcn.004015e0
push 0x4054bc
mov eax, esi
push eax
call fcn.00401650
push 0x405180
mov ecx, esi
push ecx
call fcn.00401650
mov eax, dword [0x4076bc]
cmp eax, ebx
jl 0x4012d4
mov esi, dword [esp + 0x14]
cmp dword [esi + 4], 0
jne 0x4013ce
xor eax, eax
jmp 0x4013d8
mov edi, dword [esp + 0x18]
mov edx, dword [edi + eax*4]
mov esi, dword [sym.imp.MSVCR90.dll_printf]
push edx
push str.Extracting_unicharset_from__s_n
call esi
mov eax, dword [0x4076bc]
mov ecx, dword [edi + eax*4]
push 0x405258
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 0x10
test edi, edi
je 0x40139a
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x24], 0
call fcn.004016e0
add esp, 0x14
test al, al
je 0x401382
jmp 0x401340
lea ebx, [esp + 0x74]
lea eax, [esp + 0x2c]
call fcn.00402080
mov ecx, ebx
lea esi, [esp + 0x2c]
call fcn.00401070
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
mov edx, ebx
push edx
lea eax, [esp + 0x1c]
push edi
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x34]
call fcn.004016e0
add esp, 0x14
test al, al
jne 0x401340
mov ebx, dword [ebp + 8]
mov eax, dword [0x4076bc]
inc eax
cmp eax, ebx
mov dword [0x4076bc], eax
jl 0x4012d0
jmp 0x4012bb
mov ecx, dword [0x4076bc]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + ecx*4]
push eax
push str.Cannot_open_box_file__s_n
call esi
add esp, 8
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x48c], 0
call fcn.00401be0
mov edx, dword [esp + 0x14]
push edx
jmp 0x401480
mov dword [esi + 4], 0xffffffff
lea eax, [esi + 8]
push 0x405254
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40144a
push edi
lea ebx, [esp + 0x30]
call fcn.004021f0
push edi
mov bl, al
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
test bl, bl
je 0x40144a
cmp dword [esi + 4], 0
jne 0x401411
xor eax, eax
jmp 0x40141b
mov dword [esi + 4], 0xffffffff
lea eax, [esi + 8]
push eax
push str.Wrote_unicharset_file__s._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x48c], 0
call fcn.00401be0
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor eax, eax
jmp 0x40148c
cmp dword [esi + 4], 0
jne 0x401454
xor eax, eax
jmp 0x40145e
mov dword [esi + 4], 0xffffffff
lea eax, [esi + 8]
push eax
push str.Cannot_save_unicharset_file__s._n
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x48c], 0
call fcn.00401be0
push esi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.004033d7
mov esp, ebp
pop ebp
ret