Function at 0x1003c02
Capabilities:
Accept command line arguments
Read .ini file
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x358
mov eax, dword [0x1007084]
push ebx
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov ebx, ecx
mov dword [ebp - 0x324], edi
mov dword [ebp - 0x32c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.cmutil.dll_CmStrCpyAllocA
push eax
mov dword [ebp - 0x330], eax
call fcn.01004e06
cmp eax, edi
mov dword [ebp - 0x334], eax
je 0x1004205
cmp dword [eax], edi
je 0x1004205
add eax, 4
cmp dword [eax], edi
push esi
mov dword [ebp - 0x328], edi
je 0x1003da5
mov dword [ebp - 0x320], eax
cmp dword [0x1007018], edi
je 0x1003cd4
mov eax, 0x1007018
mov esi, eax
mov ecx, dword [ebp - 0x320]
push dword [ecx]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003c9d
add esi, 8
inc edi
cmp dword [esi], 0
mov eax, esi
jne 0x1003c7c
jmp 0x1003cd4
cmp dword [ebp - 0x328], 0
jne 0x10041f0
mov eax, dword [edi*8 + 0x100701c]
cmp eax, 8
je 0x1003cc7
cmp eax, 0x10
jne 0x1003cd1
mov dword [ebp - 0x328], 1
jmp 0x1003cd4
cmp dword [ebx + 8], 0
jne 0x10041f0
or dword [ebx + 0xc], eax
xor esi, esi
cmp dword [edi*8 + 0x1007018], esi
jne 0x1003d8e
cmp dword [ebp - 0x328], esi
je 0x1003d28
cmp dword [ebp - 0x324], esi
jne 0x10041f9
mov dword [ebp - 0x328], esi
mov esi, 0x825
push esi
call sub.cmutil.dll_CmMalloc
test eax, eax
mov dword [ebp - 0x324], eax
je 0x1004204
mov ecx, dword [ebp - 0x320]
push esi
push dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x1003d8e
cmp dword [ebx + 8], esi
jne 0x10041f0
test byte [ebx + 0xc], 8
jne 0x10041f0
mov eax, dword [ebp - 0x320]
push 0x105
push dword [eax]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x214]
push eax
call sub.cmutil.dll_CmStrCpyAllocA
cmp eax, esi
mov dword [ebx + 8], eax
je 0x10041f0
push 0x5c
lea eax, [ebp - 0x214]
push eax
call sub.cmutil.dll_CmStrrchrA
cmp eax, esi
je 0x1003d8e
mov byte [eax], 0
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
add dword [ebp - 0x320], 4
mov eax, dword [ebp - 0x320]
xor edi, edi
cmp dword [eax], edi
jne 0x1003c6d
mov eax, dword [ebx + 0xc]
test ah, 0x20
je 0x1003dc1
mov ecx, 0x3001
or eax, ecx
cmp eax, ecx
jne 0x10041f0
jmp 0x10041e6
cmp dword [ebp - 0x328], edi
jne 0x10041f0
mov ecx, dword [ebx + 8]
cmp ecx, edi
jne 0x1003de0
test al, 8
je 0x10041f0
cmp ecx, edi
je 0x1003dec
cmp dword [ebp - 0x324], edi
jne 0x10041f9
push 0x36c
call sub.cmutil.dll_CmMalloc
cmp eax, edi
mov dword [ebx + 0x28], eax
je 0x10041f0
inc dword [ebx + 0x24]
cmp dword [ebp - 0x324], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jne 0x1004083
mov eax, dword [ebx + 8]
test eax, eax
je 0x1004204
push eax
push 0x104
lea eax, [ebp - 0x10c]
push eax
mov edi, 0x10014a3
push edi
push 0x100146c
push 0x1001490
call esi
cmp byte [ebp - 0x10c], 0
je 0x1004204
push 0x1001310
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x214]
push eax
call sub.cmutil.dll_CmStrCpyAllocA
mov ecx, dword [ebx + 0x28]
mov dword [ecx], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax]
test eax, eax
je 0x1004204
push eax
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edi
push 0x1001454
push 0x100145c
call esi
cmp byte [ebp - 0x10c], 0
jne 0x1003ec2
push edi
call sub.cmutil.dll_CmStrCpyAllocA
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 0x18], eax
jmp 0x1003f3a
lea eax, [ebp - 0x10c]
push eax
call sub.cmutil.dll_CmStrCpyAllocA
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 4]
test eax, eax
je 0x1004204
push 0x5c
push eax
call sub.cmutil.dll_CmStrrchrA
test eax, eax
mov dword [ebp - 0x328], eax
je 0x1004204
push 0x2e
push eax
call sub.cmutil.dll_CmStrchrA
test eax, eax
mov dword [ebp - 0x320], eax
je 0x1004204
mov byte [eax], 0
mov eax, dword [ebp - 0x328]
inc eax
push eax
call sub.cmutil.dll_CmStrCpyAllocA
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 0x18], eax
mov eax, dword [ebx + 0x28]
cmp dword [eax + 0x18], 0
je 0x1004204
mov eax, dword [ebp - 0x320]
mov byte [eax], 0x2e
mov eax, dword [ebx + 0x28]
push dword [eax]
lea eax, [ebp - 0x10c]
push 0x104
push eax
push edi
push 0x1001448
push 0x100145c
call esi
lea eax, [ebp - 0x10c]
push eax
call sub.cmutil.dll_CmStrCpyAllocA
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x28]
cmp dword [eax + 8], 0
je 0x1004204
push dword [eax]
lea eax, [ebp - 0x10c]
push 0x104
push eax
push edi
push 0x1001488
push 0x1001490
call esi
lea eax, [ebp - 0x10c]
push eax
call sub.cmutil.dll_CmStrCpyAllocA
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 0x10], eax
mov eax, dword [ebx + 0x28]
cmp dword [eax + 0x10], 0
je 0x1004204
push 0x825
call sub.cmutil.dll_CmMalloc
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 0xc], eax
mov edx, dword [ebx + 0x28]
cmp dword [edx + 0xc], 0
je 0x1004204
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x358]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x358], 0x24
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x354], eax
lea eax, [ebp - 0x358]
push eax
mov dword [ebp - 0x350], 0x824
mov dword [ebp - 0x33c], 0x1003a66
mov dword [ebp - 0x338], ebx
push dword [edx]
call sub.cmpbk32.dll_PhoneBookParseInfoA
test eax, eax
mov dword [ebp - 0x32c], eax
je 0x1004204
push dword [ebp - 0x34c]
call sub.cmpbk32.dll_PhoneBookFreeFilter
push dword [ebp - 0x348]
call sub.cmpbk32.dll_PhoneBookFreeFilter
mov eax, dword [ebx + 0x28]
push dword [eax]
mov edi, 0x1001490
push 0x78
push 0x100137c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
imul eax, eax, 0x3e8
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x28]
push dword [eax]
push 0xffffffffffffffff
push 0x100138c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jge 0x1004078
or dword [ebx + 0x50], 0xffffffff
jmp 0x1004098
imul eax, eax, 0x3e8
mov dword [ebx + 0x50], eax
jmp 0x1004098
mov ecx, dword [ebp - 0x324]
and dword [ebp - 0x324], 0
mov dword [eax + 0xc], ecx
mov edi, 0x1001490
cmp dword [ebx + 8], 0
je 0x10041b1
push 0x105
call sub.cmutil.dll_CmMalloc
test eax, eax
mov dword [ebx + 0x3c], eax
je 0x1004204
mov eax, dword [ebx + 0x28]
push 0x105
push dword [eax]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x2e
lea eax, [ebp - 0x10c]
push eax
call sub.cmutil.dll_CmStrrchrA
test eax, eax
je 0x10040f1
push 0x2e
lea eax, [ebp - 0x10c]
push eax
call sub.cmutil.dll_CmStrrchrA
mov byte [eax], 0
push 0x5c
lea eax, [ebp - 0x10c]
push eax
call sub.cmutil.dll_CmStrrchrA
test eax, eax
je 0x1004125
push 0x105
push 0x5c
lea eax, [ebp - 0x10c]
push eax
call sub.cmutil.dll_CmStrrchrA
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebx + 0x28]
push dword [eax]
lea eax, [ebp - 0x10c]
push 0x104
push dword [ebx + 0x3c]
push eax
push 0x1001460
push edi
call esi
mov eax, dword [ebx + 0x28]
push dword [eax]
lea eax, [ebp - 0x31c]
push 0x104
push eax
push 0x10014a3
push 0x1001480
push edi
call esi
cmp byte [ebp - 0x31c], 0
je 0x1004179
lea eax, [ebp - 0x31c]
push eax
push dword [ebx]
call sub.cmutil.dll_CmLoadIconA
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x28]
push dword [eax]
lea eax, [ebp - 0x31c]
push 0x104
push eax
push 0x10014a3
push 0x1001474
push edi
call esi
cmp byte [ebp - 0x31c], 0
je 0x10041b1
lea eax, [ebp - 0x31c]
push eax
push dword [ebx]
call sub.cmutil.dll_CmLoadSmallIconA
mov dword [ebx + 0x44], eax
cmp dword [ebx + 0x40], 0
jne 0x10041c3
push 0x66
push dword [ebx]
call sub.cmutil.dll_CmLoadIconA
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x44], 0
jne 0x10041d5
push 0x66
push dword [ebx]
call sub.cmutil.dll_CmLoadSmallIconA
mov dword [ebx + 0x44], eax
mov ebx, dword [ebx + 0x28]
push dword [ebx + 0x18]
push dword [ebx + 0x10]
mov ebx, dword [ebx + 0xc]
call fcn.010038c2
mov dword [ebp - 0x32c], 1
cmp dword [ebp - 0x324], 0
je 0x1004204
push dword [ebp - 0x324]
call sub.cmutil.dll_CmFree
pop esi
cmp dword [ebp - 0x330], 0
pop edi
pop ebx
je 0x100421b
push dword [ebp - 0x330]
call sub.cmutil.dll_CmFree
cmp dword [ebp - 0x334], 0
je 0x100422f
push dword [ebp - 0x334]
call sub.cmutil.dll_CmFree
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x32c]
call fcn.01004f75
leave
ret