Function at 0x416e00
Capabilities:
Set current directory
Terminate process

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x45e512
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
mov esi, ecx
mov al, byte [esi + 0x74]
mov ebx, 1
cmp al, bl
push edi
je 0x417249
lea ecx, [esp + 0x14]
call fcn.00412c90
mov eax, dword [esp + 0x194]
mov ecx, dword [esi + 0x144]
lea ebp, [eax + eax*2]
shl ebp, 2
lea eax, [ecx + ebp]
lea ecx, [esp + 0x14]
push ecx
xor edi, edi
push eax
mov ecx, esi
mov dword [esp + 0x194], edi
call fcn.00416250
test al, al
jne 0x417161
mov dword [esi + 0x184], edi
call fcn.0044ed62
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [0x47c950]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov edi, esp
push eax
mov byte [esp + 0x194], bl
call fcn.004013c0
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x47c930]
add eax, 0xfffffff0
mov dword [esp + 0x28], esp
mov edi, esp
push eax
mov byte [esp + 0x198], 2
call fcn.004013c0
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
mov byte [esp + 0x194], bl
call fcn.00410f80
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x416f1d
mov eax, dword [esi + 0x144]
mov eax, dword [eax + ebp + 4]
push eax
lea ecx, [esi + 0x140]
push ecx
mov ecx, esi
call fcn.00411830
mov edx, dword [esp + 0x14]
mov eax, dword [0x47c9d0]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_n_n_s
push ecx
call fcn.00401c60
add esp, 0x10
jmp 0x417142
xor ebp, ebp
cmp eax, ebp
jne 0x416f37
mov edx, dword [esp + 0x14]
push edx
push 0x461bd4
lea eax, [esp + 0x18]
push eax
jmp 0x41713a
cmp eax, 2
jne 0x41712a
mov ecx, dword [esp + 0x14]
mov edx, dword [0x47c9d4]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_n_n_s
push eax
call fcn.00401c60
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebp
push 0x50030
push ecx
call fcn.004572e9
push 0x4616a8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x30], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
call fcn.004026d0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov byte [esp + 0x198], 3
call fcn.00411b10
test al, al
jne 0x416fdd
mov edx, dword [esp + 0x28]
mov eax, dword [0x47c9e8]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_n_n_s
push ecx
call fcn.00401c60
add esp, 0x10
lea ecx, [esp + 0x28]
mov byte [esp + 0x18c], bl
call fcn.004012e0
jmp 0x417142
push 0x4616a8
lea ecx, [esp + 0x28]
call fcn.004026d0
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x194], 4
call fcn.004156e0
test al, al
lea ecx, [esp + 0x24]
je 0x41707f
push 0x47c9ec
call fcn.00401cf0
push str.ipf_revision
lea ecx, [esp + 0x3c]
call fcn.004026d0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x160]
call fcn.00411270
lea ecx, [esp + 0x38]
call fcn.004012e0
mov eax, dword [esi + 0x164]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
je 0x417089
add ecx, 0x10
mov eax, dword [ecx]
mov edi, dword [ecx + 4]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
call fcn.00405920
cmp edi, eax
jae 0x417089
push edi
call fcn.00405aa0
add esp, 4
push edi
mov ecx, esi
call fcn.0040d7d0
jmp 0x417089
push 0x47c9f0
call fcn.00401cf0
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.00428180
add esp, 8
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0x160]
mov byte [esp + 0x194], 5
call fcn.00411270
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x164]
je 0x4170ec
add eax, 0x10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], edx
push ecx
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov dword [esp + 0x3c], eax
call fcn.004124b0
push 0x64
mov ecx, esi
call fcn.0040d020
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x14]
push 0x461bd4
push ecx
call fcn.00401c60
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ebp
push 0x50030
push edx
call fcn.004572e9
mov ecx, esi
call fcn.00415230
push ebp
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x47c9cc]
push eax
push 0x461bd4
lea ecx, [esp + 0x18]
push ecx
call fcn.00401c60
add esp, 0xc
mov edx, dword [esp + 0x10]
push edx
push 0x4f9
push str..UpdaterDlg_Update.cpp
call fcn.00402b50
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x47cadc]
push 0x463140
or edi, 0xffffffff
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x188], edi
mov dword [esp + 0x44], 0x462f08
call fcn.00414b30
mov ecx, dword [0x47cadc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4171a2
push str.CRenamer::Init__
call fcn.0040f570
mov eax, dword [esp + 0x180]
cmp eax, edi
je 0x4171b4
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str..arrange
mov dword [esp + 0x184], edi
call fcn.00414eb0
add esp, 4
cmp al, bl
jne 0x4171d3
mov ecx, esi
call fcn.00415090
mov eax, dword [esi + 0x144]
cmp byte [eax + ebp], 0
je 0x4171fe
mov edx, dword [eax + ebp + 4]
push edx
call fcn.00405aa0
mov eax, dword [esi + 0x144]
mov eax, dword [eax + ebp + 4]
add esp, 4
push eax
mov ecx, esi
call fcn.0040d7d0
mov ebp, dword [esi + 0x174]
inc ebp
mov eax, ebp
imul eax, eax, 0x64
cdq
idiv dword [esi + 0x178]
mov ecx, esi
mov dword [esi + 0x174], ebp
push eax
call fcn.0040d020
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x18c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x417249
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x180
ret 4