Function at 0x405490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
push 0
call dword [0x41f340]
push 0
push 0
push 0
push 0
call dword [0x41f24c]
call fcn.00405330
test eax, eax
je 0x4054cd
push str.Initialize
push eax
call dword [0x41f06c]
test eax, eax
je 0x4054cd
call eax
mov esi, dword [0x428c30]
call fcn.00403fc0
test eax, eax
je 0x4054eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push 0
push str.miniui.xml
push esi
push eax
call edx
call fcn.00403a90
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push esi
mov dword [esp + 0x14], 0
call dword [0x41f214]
mov edi, eax
test edi, edi
je 0x40556b
cmp dword [esp + 0x18], 1
jne 0x40556b
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [edi]
call fcn.004058a0
lea ebx, [esp + 0x10]
call fcn.00405a30
mov edx, dword [esp + 0x10]
push str._UpdateNow
push edx
call fcn.0040e1ab
add esp, 8
test eax, eax
jne 0x40554b
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40556b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [0x41f090]
push str.12F9D4FA_446A_4864_B444_917272E549C7
push 1
push 0
call dword [0x41f1a0]
test eax, eax
je 0x4055fe
call dword [0x41f064]
cmp eax, 0xb7
jne 0x4055fe
cmp dword [esp + 0xc], 0
je 0x40575e
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404280
push ecx
mov edx, esp
mov dword [esp + 0x14], esp
push edx
mov ecx, 0x421b40
call fcn.004058a0
push ecx
mov eax, esp
mov dword [esp + 0x18], esp
push eax
mov ecx, 0x421b54
call fcn.004058a0
lea esi, [esp + 0x24]
call fcn.00404340
mov dword [esp + 0x48], 0
call dword [0x41f31c]
push eax
mov edi, esi
call fcn.00405ca0
mov eax, esi
call fcn.00404910
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [0x41f08c]
cmp al, 5
jbe 0x405647
call dword [0x41f208]
test eax, eax
je 0x405626
lea edi, [esp + 0x10]
call fcn.00405220
test eax, eax
je 0x405626
cmp dword [esp + 0x10], 0
jne 0x405647
cmp dword [esp + 0xc], 0
jne 0x405637
call fcn.00404ba0
cmp eax, 2
jne 0x40563c
call fcn.004052a0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x864
call fcn.0040eaac
add esp, 4
test eax, eax
je 0x405663
mov esi, eax
call fcn.00406e60
mov ebx, eax
jmp 0x405665
xor ebx, ebx
cmp dword [esp + 0xc], 0
je 0x405673
mov dword [ebx + 0x54], 1
mov edi, ebx
call fcn.00405bd0
mov edi, dword [0x4298b8]
xor eax, eax
lea ecx, [esp + 0x50]
add edi, 0x10
push edi
mov dword [esp + 0x54], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x14], ecx
call dword [0x41f070]
call dword [0x41f084]
mov esi, dword [0x429930]
lea edx, [esp + 0x10]
mov dword [esp + 0xc], eax
push edx
lea eax, [esp + 0x10]
push eax
call fcn.00405b30
push edi
call dword [0x41f158]
lea edi, [esp + 0x50]
call fcn.00403940
call fcn.00403bb0
xor esi, esi
cmp ebx, esi
je 0x4056f9
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
call fcn.00403fc0
cmp eax, esi
je 0x40570a
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
call fcn.00405330
cmp eax, esi
je 0x405725
push str.OnExiting
push eax
call dword [0x41f06c]
cmp eax, esi
je 0x405725
call eax
call fcn.00403b50
call dword [0x41f33c]
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x405745
push eax
call fcn.0040e38f
add esp, 4
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
cmp eax, esi
je 0x40575e
push eax
call fcn.0040e38f
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10