Function at 0x4b0250
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x5abe75
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
add eax, 0xfffffffe
cmp eax, 0xb
ja case.0x4b028a.4
jmp dword [eax*4 + 0x4b0840]
mov ebx, 4
jmp 0x4b02c0
mov ebx, 8
jmp 0x4b02c0
mov ebx, 0x40
jmp 0x4b02c0
mov ebx, 1
jmp 0x4b02c0
mov ebx, 2
jmp 0x4b02c0
mov ebx, 0x10
jmp 0x4b02c0
mov ebx, 0x20
lea eax, [esp + 0x84]
mov dword [esp + 0x7c], 0
call fcn.004d02a0
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x4b067d
lea eax, [ebx - 1]
cmp eax, 0x3f
mov dword [esp + 0x34], ebp
ja case.0x4b02f9.1
movzx eax, byte [eax + 0x4b087c]
jmp dword [eax*4 + 0x4b0870]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0x84]
push ecx
mov ecx, eax
call fcn.00404460
mov byte [esp + 0x7c], 1
mov eax, dword [esp + 0x84]
cmp dword [eax - 0xc], 0
jl 0x4b0347
push 0x5c0220
push eax
call fcn.0057880c
add esp, 8
test eax, eax
je 0x4b0347
sub eax, dword [esp + 0x84]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4b0370
lea ecx, [esp + 0x84]
call fcn.00404510
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
lea ecx, [eax + 2]
lea esi, [esp + 0x20]
lea edx, [esp + 0x84]
call fcn.00403540
lea edi, [esp + 0x84]
mov byte [esp + 0x7c], 2
call fcn.004035d0
mov ecx, esi
mov byte [esp + 0x7c], 1
call fcn.00404510
mov eax, dword [esp + 0x84]
cmp dword [eax - 0xc], 0
jl 0x4b03cd
push str.Module
push eax
call fcn.0057880c
add esp, 8
test eax, eax
je 0x4b03cd
sub eax, dword [esp + 0x84]
sar eax, 1
cmp eax, 0xffffffff
jne 0x4b03f9
lea ecx, [esp + 0x84]
call fcn.00404510
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
lea ecx, [eax + 7]
lea esi, [esp + 0x24]
lea edx, [esp + 0x84]
call fcn.00403540
lea edi, [esp + 0x84]
mov byte [esp + 0x7c], 3
call fcn.004035d0
mov ecx, esi
call fcn.00404510
lea ecx, [esp + 0x18]
call fcn.00404530
mov byte [esp + 0x7c], 4
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx - 0xc]
xor ebp, ebp
test eax, eax
jle 0x4b05ad
push 0x26
push ecx
call fcn.00578331
add esp, 8
test eax, eax
je 0x4b04c3
sub eax, dword [esp + 0x84]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x4b04c3
lea ecx, [esp + 0x28]
lea edx, [esp + 0x84]
call fcn.00403560
lea edi, [esp + 0x18]
mov byte [esp + 0x7c], 5
call fcn.004035d0
lea ecx, [esp + 0x28]
mov byte [esp + 0x7c], 4
call fcn.00404510
lea ecx, [esi + 1]
lea esi, [esp + 0x2c]
lea edx, [esp + 0x84]
call fcn.00403540
lea edi, [esp + 0x84]
mov byte [esp + 0x7c], 6
call fcn.004035d0
mov ecx, esi
mov byte [esp + 0x7c], 4
call fcn.00404510
jmp 0x4b04e4
lea eax, [esp + 0x84]
lea edi, [esp + 0x18]
call fcn.004035d0
mov edx, 0x5bcc3c
lea edi, [esp + 0x84]
call fcn.004040f0
push 0x5bcc3c
push 0x5bf15c
lea edx, [esp + 0x20]
push edx
call fcn.00428840
lea eax, [esp + 0x18]
push eax
mov ecx, str.config
call fcn.004866f0
add esp, 4
test al, al
je 0x4b0516
or ebp, 1
jmp 0x4b059b
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.skin
call fcn.004866f0
add esp, 4
test al, al
je 0x4b0531
or ebp, 2
jmp 0x4b059b
lea edx, [esp + 0x18]
push edx
mov ecx, str.phrase
call fcn.004866f0
add esp, 4
test al, al
je 0x4b054c
or ebp, 4
jmp 0x4b059b
lea eax, [esp + 0x18]
push eax
mov ecx, str.punc
call fcn.004866f0
add esp, 4
test al, al
je 0x4b0567
or ebp, 8
jmp 0x4b059b
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.cdictlist
call fcn.004866f0
add esp, 4
test al, al
je 0x4b0582
or ebp, 0x10
jmp 0x4b059b
lea edx, [esp + 0x18]
push edx
mov ecx, str.candorder
call fcn.004866f0
add esp, 4
test al, al
je 0x4b059b
or ebp, 0x20
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx - 0xc]
test eax, eax
jg 0x4b0446
or dword [0x606008], ebp
test dword [section..sdata], ebx
lea ecx, [esp + 0x18]
je 0x4b05fe
mov dword [0x606004], 1
call fcn.00404510
lea ecx, [esp + 0x84]
call fcn.00404510
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
call fcn.00404510
lea ecx, [esp + 0x84]
call fcn.00404510
mov ebp, dword [esp + 0x1c]
or dword [section..sdata], ebx
push 0xffffffffffffffff
push ebp
mov dword [esp + 0x34], ebp
mov byte [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4b0636
cmp eax, 0x80
jne 0x4b063b
mov byte [esp + 0x30], 1
mov ecx, ebx
not ecx
mov byte [esp + 0x7c], 7
and dword [section..sdata], ecx
lea eax, [ebx - 1]
cmp eax, 0x3f
ja case.0x4b065d.3
movzx edx, byte [eax + 0x4b08dc]
jmp dword [edx*4 + 0x4b08bc]
test dword [section..sdata], ebx
je 0x4b0613
push ebp
mov dword [0x606004], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push 0x748
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x84], eax
mov byte [esp + 0x7c], 8
test eax, eax
je 0x4b07ab
push eax
mov ecx, ebx
call fcn.004b1ab0
jmp 0x4b07ad
push 0x748
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x84], eax
mov byte [esp + 0x7c], 9
jmp 0x4b06af
push 0x7c8
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x84], eax
mov byte [esp + 0x7c], 0xa
test eax, eax
je 0x4b07ab
push eax
mov ecx, ebx
call fcn.004b20e0
jmp 0x4b07ad
push 0x7c8
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x84], eax
mov byte [esp + 0x7c], 0xb
jmp 0x4b06f8
push 0x740
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x84], eax
test eax, eax
mov byte [esp + 0x7c], 0xc
je 0x4b07ab
push ebx
push eax
call fcn.004b2ec0
jmp 0x4b07ad
push 0x7d0
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x84], eax
test eax, eax
mov byte [esp + 0x7c], 0xd
je 0x4b07ab
push ebx
push eax
call fcn.004b3080
jmp 0x4b07ad
mov esi, dword [0x606008]
push 0x740
mov dword [0x606008], 0
call fcn.00578e5f
add esp, 4
mov dword [esp + 0x84], eax
test eax, eax
mov byte [esp + 0x7c], 0xe
je 0x4b07ab
push esi
push ebx
push eax
call fcn.004b1c90
jmp 0x4b07ad
xor eax, eax
mov ebp, eax
test ebp, ebp
mov byte [esp + 0x7c], 7
je 0x4b080b
mov edi, ebp
call fcn.004b3e70
xor ecx, ecx
cmp eax, ecx
je 0x4b07ff
mov dword [esp + 0x38], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
lea edi, [esp + 0x38]
mov byte [esp + 0x7c], 0xf
call fcn.004b4410
mov esi, edi
mov byte [esp + 0x7c], 7
call fcn.004b0920
mov eax, dword [ebp]
mov edx, dword [eax + 4]
push 1
mov ecx, ebp
call edx
mov ebp, dword [esp + 0x1c]
cmp byte [esp + 0x30], 0
je 0x4b081d
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret