Function at 0x1003e62
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 [0x100c084]
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.01005066
cmp eax, edi
mov dword [ebp - 0x334], eax
je 0x1004465
cmp dword [eax], edi
je 0x1004465
add eax, 4
cmp dword [eax], edi
push esi
mov dword [ebp - 0x328], edi
je 0x1004005
mov dword [ebp - 0x320], eax
cmp dword [0x100c018], edi
je 0x1003f34
mov eax, 0x100c018
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 0x1003efd
add esi, 8
inc edi
cmp dword [esi], 0
mov eax, esi
jne 0x1003edc
jmp 0x1003f34
cmp dword [ebp - 0x328], 0
jne 0x1004450
mov eax, dword [edi*8 + 0x100c01c]
cmp eax, 8
je 0x1003f27
cmp eax, 0x10
jne 0x1003f31
mov dword [ebp - 0x328], 1
jmp 0x1003f34
cmp dword [ebx + 8], 0
jne 0x1004450
or dword [ebx + 0xc], eax
xor esi, esi
cmp dword [edi*8 + 0x100c018], esi
jne 0x1003fee
cmp dword [ebp - 0x328], esi
je 0x1003f88
cmp dword [ebp - 0x324], esi
jne 0x1004459
mov dword [ebp - 0x328], esi
mov esi, 0x825
push esi
call sub.cmutil.dll_CmMalloc
test eax, eax
mov dword [ebp - 0x324], eax
je 0x1004464
mov ecx, dword [ebp - 0x320]
push esi
push dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x1003fee
cmp dword [ebx + 8], esi
jne 0x1004450
test byte [ebx + 0xc], 8
jne 0x1004450
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 0x1004450
push 0x5c
lea eax, [ebp - 0x214]
push eax
call sub.cmutil.dll_CmStrrchrA
cmp eax, esi
je 0x1003fee
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 0x1003ecd
mov eax, dword [ebx + 0xc]
test ah, 0x20
je 0x1004021
mov ecx, 0x3001
or eax, ecx
cmp eax, ecx
jne 0x1004450
jmp 0x1004446
cmp dword [ebp - 0x328], edi
jne 0x1004450
mov ecx, dword [ebx + 8]
cmp ecx, edi
jne 0x1004040
test al, 8
je 0x1004450
cmp ecx, edi
je 0x100404c
cmp dword [ebp - 0x324], edi
jne 0x1004459
push 0x36c
call sub.cmutil.dll_CmMalloc
cmp eax, edi
mov dword [ebx + 0x28], eax
je 0x1004450
inc dword [ebx + 0x24]
cmp dword [ebp - 0x324], edi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jne 0x10042e3
mov eax, dword [ebx + 8]
test eax, eax
je 0x1004464
push eax
push 0x104
lea eax, [ebp - 0x10c]
push eax
mov edi, 0x1001493
push edi
push 0x100145c
push 0x1001480
call esi
cmp byte [ebp - 0x10c], 0
je 0x1004464
push 0x1001300
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 0x1004464
push eax
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edi
push 0x1001444
push 0x100144c
call esi
cmp byte [ebp - 0x10c], 0
jne 0x1004122
push edi
call sub.cmutil.dll_CmStrCpyAllocA
mov ecx, dword [ebx + 0x28]
mov dword [ecx + 0x18], eax
jmp 0x100419a
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 0x1004464
push 0x5c
push eax
call sub.cmutil.dll_CmStrrchrA
test eax, eax
mov dword [ebp - 0x328], eax
je 0x1004464
push 0x2e
push eax
call sub.cmutil.dll_CmStrchrA
test eax, eax
mov dword [ebp - 0x320], eax
je 0x1004464
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 0x1004464
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 0x1001438
push 0x100144c
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 0x1004464
push dword [eax]
lea eax, [ebp - 0x10c]
push 0x104
push eax
push edi
push 0x1001478
push 0x1001480
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 0x1004464
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 0x1004464
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], 0x1003cc6
mov dword [ebp - 0x338], ebx
push dword [edx]
call sub.cmpbk32.dll_PhoneBookParseInfoA
test eax, eax
mov dword [ebp - 0x32c], eax
je 0x1004464
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, 0x1001480
push 0x78
push 0x100136c
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 0x100137c
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jge 0x10042d8
or dword [ebx + 0x50], 0xffffffff
jmp 0x10042f8
imul eax, eax, 0x3e8
mov dword [ebx + 0x50], eax
jmp 0x10042f8
mov ecx, dword [ebp - 0x324]
and dword [ebp - 0x324], 0
mov dword [eax + 0xc], ecx
mov edi, 0x1001480
cmp dword [ebx + 8], 0
je 0x1004411
push 0x105
call sub.cmutil.dll_CmMalloc
test eax, eax
mov dword [ebx + 0x3c], eax
je 0x1004464
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 0x1004351
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 0x1004385
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 0x1001450
push edi
call esi
mov eax, dword [ebx + 0x28]
push dword [eax]
lea eax, [ebp - 0x31c]
push 0x104
push eax
push 0x1001493
push 0x1001470
push edi
call esi
cmp byte [ebp - 0x31c], 0
je 0x10043d9
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 0x1001493
push 0x1001464
push edi
call esi
cmp byte [ebp - 0x31c], 0
je 0x1004411
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 0x1004423
push 0x66
push dword [ebx]
call sub.cmutil.dll_CmLoadIconA
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x44], 0
jne 0x1004435
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.01003b22
mov dword [ebp - 0x32c], 1
cmp dword [ebp - 0x324], 0
je 0x1004464
push dword [ebp - 0x324]
call sub.cmutil.dll_CmFree
pop esi
cmp dword [ebp - 0x330], 0
pop edi
pop ebx
je 0x100447b
push dword [ebp - 0x330]
call sub.cmutil.dll_CmFree
cmp dword [ebp - 0x334], 0
je 0x100448f
push dword [ebp - 0x334]
call sub.cmutil.dll_CmFree
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x32c]
call fcn.010051d5
leave
ret