Function at 0x41a210
Capabilities:
Accept command line arguments
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x43e9c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x864
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x18]
push eax
mov ecx, 0x44fec0
mov dword [esp + 0x24], edi
call fcn.00402780
mov ecx, dword [edi + 0x5c]
xor ebx, ebx
mov dword [esp + 0x87c], ebx
call fcn.00413db0
mov ebp, eax
cmp ebp, ebx
jle 0x41a2ad
call fcn.00405ac0
cmp eax, ebx
je 0x41a2ad
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp eax, ebx
je 0x41a2ad
cmp edi, ebx
mov dword [esp + 0x1c], ebx
je 0x41a2ad
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x41a28d
push 0x3ed
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
jmp 0x41a28f
xor esi, esi
call fcn.00405ac0
cmp eax, ebx
je 0x41a2ad
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x283c
push esi
push eax
call dword [edx + 0x20]
cmp eax, ebx
jne 0x41a2c8
lea ecx, [esp + 0x18]
mov dword [esp + 0x87c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x41abd6
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 4]
mov esi, eax
cmp esi, ebx
je 0x41a2f1
mov eax, dword [esi]
push esi
call dword [eax + 0x60]
mov ecx, dword [esi]
push 1
push ebx
push ebx
push ebx
push esi
call dword [ecx + 0x44]
mov edx, dword [esi]
push 1
push esi
call dword [edx + 0x2c]
mov ecx, dword [edi + 0x5c]
call fcn.00413fb0
mov esi, eax
mov ecx, esi
call fcn.00411ea0
test eax, eax
je 0x41a332
mov edx, dword [esi + 0x20]
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esi + 0x18]
mov ecx, dword [eax]
push edx
mov edx, dword [esi + 0x10]
push edx
push 0xffffffffffffffff
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 4]
mov ecx, dword [esi + 8]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov edi, dword [esp + 0x884]
xor esi, esi
test ebp, ebp
mov ebx, 2
jle 0x41a398
mov edx, dword [esp + 0x20]
push esi
mov ecx, dword [edx + 0x5c]
call fcn.00413dd0
test eax, eax
je 0x41a2ad
test edi, edi
je 0x41a378
mov eax, dword [eax + 0x2c]
mov ecx, dword [esp + 0x1c]
push 0
push 0
mov edx, dword [ecx]
push eax
lea eax, [esi + 0x4e84]
push eax
push ecx
call dword [edx + 0x10]
jmp 0x41a393
cmp dword [eax + 0x1c], ebx
jne 0x41a393
mov ecx, eax
call fcn.00410550
test eax, eax
je 0x41a393
mov edx, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x20]
inc esi
cmp esi, ebp
jl 0x41a344
test edi, edi
je 0x41a47b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x10]
mov esi, eax
call sub.MFC42u.DLL_CString::CString_4
xor ebp, ebp
mov byte [esp + 0x87c], 1
cmp esi, ebp
je 0x41a3c9
push esi
lea ecx, [esp + 0x14]
call fcn.00439862
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::MakeLower
push 0x44c9a0
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x41a3f3
add eax, 8
lea ecx, [esp + 0x10]
push eax
push ebp
call sub.MFC42u.DLL_CString::Delete
push 0x44c39c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x41a41a
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Delete
push 0x44c99c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::Find
cmp eax, 0xffffffff
je 0x41a441
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 8]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Delete
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
je 0x41a45d
mov eax, dword [esp + 0x20]
push ebp
add eax, 0x44
push ebp
push ecx
push eax
mov edx, dword [eax]
call dword [edx]
test eax, eax
je 0x41a468
mov eax, dword [esp + 0x1c]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea ecx, [esp + 0x10]
mov byte [esp + 0x87c], 0
call sub.MFC42u.DLL_CString::CString
jmp 0x41a47d
xor ebp, ebp
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx]
push eax
call sub.MFC42u.DLL_CWnd::FromHandle
mov edi, eax
xor eax, eax
mov dword [esp + 0x40], eax
cmp edi, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], eax
je 0x41abbd
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x20]
lea ebx, [eax + 0x16c]
cmp ebx, ebp
jne 0x41a4c9
xor eax, eax
jmp 0x41a4cc
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41a622
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
push ebp
push 0x8071
lea eax, [ecx - 0x34]
lea ecx, [edx - 0x18]
mov dword [esp + 0x48], ecx
add ecx, 0x14
mov dword [esp + 0x50], ecx
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x44]
add eax, 0x32
push edi
push ecx
mov dword [esp + 0x54], eax
mov eax, dword [ebx]
push 0x50000000
push ebp
push ebp
mov ecx, ebx
call dword [eax + 0x5c]
cmp ebx, ebp
jne 0x41a521
xor eax, eax
jmp 0x41a524
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41a622
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
push eax
mov edx, dword [eax]
call dword [edx]
mov esi, eax
lea eax, [esp + 0x10]
test eax, eax
je 0x41a570
cmp esi, ebp
mov dword [esp + 0x10], ebp
je 0x41a570
call fcn.00405ac0
cmp eax, ebp
je 0x41a570
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x2710
push esi
push eax
call dword [ecx + 0x20]
mov dword [esp + 0x14], ebp
call fcn.00405ac0
cmp eax, ebp
je 0x41a595
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
push 0x2710
mov edx, dword [edx + 0x20]
push edx
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x41a5b0
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [edx + 0x20]
push edx
push 0x8071
push eax
call dword [ecx + 0x5c]
mov esi, dword [edi + 0x20]
call fcn.00405ac0
cmp eax, ebp
je 0x41a5d4
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x1c]
cmp eax, ebp
je 0x41a5d4
mov edx, dword [eax]
push 4
push 0x8071
push eax
call dword [edx + 0x10]
cmp ebx, ebp
jne 0x41a5dc
xor esi, esi
jmp 0x41a5df
mov esi, dword [ebx + 0x20]
lea eax, [esp + 0x10]
test eax, eax
je 0x41a609
cmp esi, ebp
mov dword [esp + 0x10], ebp
je 0x41a622
call fcn.00405ac0
cmp eax, ebp
je 0x41a609
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x2710
push esi
push eax
call dword [ecx + 0x20]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x41a622
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x41a622
mov edx, dword [eax]
push 1
push ecx
push eax
call dword [edx + 0x7c]
cmp ebx, ebp
jne 0x41a62a
xor eax, eax
jmp 0x41a62d
mov eax, dword [ebx + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41abbd
call fcn.004057a0
test eax, eax
je 0x41a64d
push ebp
mov ecx, ebx
call sub.MFC42u.DLL_CWnd::ShowWindow
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
mov byte [esp + 0x87c], 2
mov ecx, dword [eax + 0x6a4]
push ecx
push str._sconfig360safe.xml
push edx
call sub.MFC42u.DLL_CString::Format_1
push 0xc
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 0x10
mov dword [esp + 0x24], esi
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp esi, ebp
mov byte [esp + 0x87c], 3
je 0x41a6ca
push str.version1.0_encodingutf_16
mov dword [esi + 4], ebp
mov dword [esi + 8], 1
call ebx
cmp eax, ebp
mov dword [esi], eax
jne 0x41a6c4
mov eax, str.version1.0_encodingutf_16
test eax, eax
je 0x41a6c4
push 0x8007000e
call fcn.0043bfa0
mov dword [esp + 0x14], esi
jmp 0x41a6d0
mov dword [esp + 0x14], ebp
mov esi, ebp
cmp esi, ebp
mov byte [esp + 0x87c], 2
mov dword [esp + 0x24], esi
jne 0x41a6ea
push 0x8007000e
call fcn.0043bfa0
mov ebp, dword [esp + 0x28]
push 0xc
mov byte [esp + 0x880], 4
call sub.MFC42u.DLL_operatornew
mov edi, eax
add esp, 4
mov dword [esp + 0x70], edi
xor esi, esi
mov byte [esp + 0x87c], 5
cmp edi, esi
je 0x41a737
push ebp
mov dword [edi + 4], esi
mov dword [edi + 8], 1
call ebx
cmp eax, esi
mov dword [edi], eax
jne 0x41a739
cmp ebp, esi
je 0x41a739
push 0x8007000e
call fcn.0043bfa0
jmp 0x41a739
xor edi, edi
cmp edi, esi
mov byte [esp + 0x87c], 4
mov dword [esp + 0x10], edi
jne 0x41a753
push 0x8007000e
call fcn.0043bfa0
mov byte [esp + 0x87c], 6
call sub.MFC42u.DLL_AfxGetModuleState
mov edi, dword [eax + 8]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x58]
mov dword [esp + 0x58], ebx
call fcn.00405960
mov eax, dword [esp + 0x10]
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, esi
mov byte [esp + 0x87c], 9
mov dword [esp + 0x4c], 0x441b38
je 0x41a883
mov ecx, dword [eax]
cmp ecx, esi
je 0x41a883
push ecx
call ebp
cmp eax, esi
mov eax, dword [esp + 0x10]
jbe 0x41a883
cmp eax, esi
je 0x41a7bf
mov eax, dword [eax]
jmp 0x41a7c1
xor eax, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x41a7e0
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x54]
call fcn.004065b0
jmp 0x41a87f
lea edx, [esp + 0x74]
push 0x400
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x41a808
mov eax, dword [eax]
jmp 0x41a80a
xor eax, eax
lea ecx, [esp + 0x74]
push eax
lea edx, [esp + 0x78]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xc
call sub.MFC42u.DLL_operatornew
add esp, 4
mov dword [esp + 0x70], eax
cmp eax, esi
mov byte [esp + 0x87c], 0xa
je 0x41a843
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
call fcn.004059d0
jmp 0x41a845
xor eax, eax
cmp eax, esi
mov byte [esp + 0x87c], 9
mov dword [esp + 0x14], eax
jne 0x41a85f
push 0x8007000e
call fcn.0043bfa0
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x884], 0xb
call fcn.004065b0
lea ecx, [esp + 0x14]
call fcn.00405980
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x41a8af
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41a8ab
cmp edi, esi
je 0x41a8ab
mov ecx, edi
call fcn.00412d30
push edi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [esp + 0x10], esi
cmp ebx, esi
mov byte [esp + 0x87c], 0xd
je 0x41a8d9
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41a8d9
mov ecx, ebx
call fcn.00412d30
push ebx
call sub.MFC42u.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
push 0x45046c
push ecx
lea ecx, [esp + 0x54]
call fcn.00407460
mov eax, dword [esp + 0x34]
mov byte [esp + 0x87c], 0xf
cmp eax, esi
je 0x41aaab
cmp dword [esp + 0x30], esi
je 0x41aaab
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [0x450468]
mov bl, 0x10
cmp eax, esi
mov byte [esp + 0x87c], bl
je 0x41aa28
mov eax, dword [eax]
test eax, eax
je 0x41aa28
push eax
call ebp
test eax, eax
jbe 0x41aa28
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x87c], 0x11
call fcn.004064c0
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test al, al
je 0x41a9bc
mov eax, dword [0x450468]
test eax, eax
je 0x41a9bc
mov eax, dword [eax]
test eax, eax
je 0x41a9bc
push eax
call ebp
test eax, eax
jbe 0x41a9bc
lea eax, [esp + 0x60]
push eax
call edi
test eax, eax
jge 0x41a98b
push eax
call fcn.0043bfa0
mov eax, dword [0x450468]
test eax, eax
je 0x41a998
mov esi, dword [eax]
jmp 0x41a99a
xor esi, esi
lea ecx, [esp + 0x34]
call fcn.00406ac0
mov ecx, dword [eax]
lea edx, [esp + 0x60]
push edx
push esi
push eax
call dword [ecx + 0x28]
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
test eax, eax
jne 0x41a9db
push 0
lea ecx, [esp + 0x18]
call fcn.00439862
lea edx, [esp + 0x60]
mov byte [esp + 0x87c], bl
push edx
call edi
test eax, eax
jge 0x41aa28
jmp 0x41aa22
cmp word [esp + 0x60], 8
je 0x41aa02
push 0
lea ecx, [esp + 0x18]
call fcn.00439862
lea eax, [esp + 0x60]
mov byte [esp + 0x87c], bl
push eax
call edi
test eax, eax
jge 0x41aa28
jmp 0x41aa22
mov ecx, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x18]
call fcn.00439862
lea edx, [esp + 0x60]
mov byte [esp + 0x87c], bl
push edx
call edi
test eax, eax
jge 0x41aa28
push eax
call fcn.0043bfa0
lea eax, [esp + 0x24]
mov ecx, 0x44fec0
push eax
call fcn.004030d0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
mov byte [esp + 0x888], 0x12
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x74]
push 0x32
push ecx
lea ecx, [esi + 0x16c]
call fcn.00425800
mov edx, dword [esi + 0x18c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x18c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x24]
mov byte [esp + 0x87c], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x87c], 0xf
call sub.MFC42u.DLL_CString::CString
xor esi, esi
mov dword [esp + 0x2c], 0x441b3c
mov eax, dword [esp + 0x34]
mov byte [esp + 0x87c], 0x14
cmp eax, esi
je 0x41aae0
xor edi, edi
lea ecx, [esp + 0x34]
mov esi, eax
mov dword [esp + 0x34], edi
call fcn.00407560
cmp esi, edi
je 0x41aae2
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
jmp 0x41aae2
xor edi, edi
mov esi, dword [esp + 0x30]
cmp esi, edi
je 0x41ab01
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edi
call fcn.00407560
cmp esi, edi
je 0x41ab01
mov edx, dword [esi]
push esi
call dword [edx + 8]
mov eax, dword [esp + 0x34]
mov byte [esp + 0x87c], 0x13
cmp eax, edi
je 0x41ab17
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x30]
mov byte [esp + 0x87c], 0xd
cmp eax, edi
je 0x41ab2d
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov dword [esp + 0x4c], 0x441b38
mov eax, dword [esp + 0x58]
mov byte [esp + 0x87c], 0x16
cmp eax, edi
je 0x41ab66
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41ab62
cmp esi, edi
je 0x41ab62
push 1
mov ecx, esi
call fcn.00414830
mov dword [esp + 0x58], edi
mov eax, dword [esp + 0x54]
cmp eax, edi
je 0x41ab96
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x41ab92
cmp esi, edi
je 0x41ab92
mov ecx, esi
call fcn.00412d30
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov dword [esp + 0x54], edi
mov eax, dword [esp + 0x50]
mov byte [esp + 0x87c], 2
cmp eax, edi
je 0x41abac
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0x28]
mov byte [esp + 0x87c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x87c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x874]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x870
ret 4