Function at 0x404310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4228b3
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x42dc40]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42dc40]
xor eax, esp
push eax
lea eax, [esp + 0x190]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0x14], eax
xor ebp, ebp
mov dword [esp + 0x198], ebp
mov esi, 0xf
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebp
mov byte [esp + 0x70], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
cmp byte [esp + 0x1dc], 0
mov ebx, 3
mov byte [esp + 0x198], bl
je 0x40442d
lea ecx, [esp + 0x1bc]
push ecx
lea edx, [esp + 0x54]
push str.launcher.addSwitch__
push edx
call fcn.00402c30
push 0x424948
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0x1b0], 4
call fcn.00402cf0
add esp, 0x18
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x1a4], 5
call fcn.00402450
mov edi, 0x10
cmp dword [esp + 0x4c], edi
jb 0x4043fd
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004054f0
add esp, 4
cmp dword [esp + 0x68], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebp
mov byte [esp + 0x38], 0
mov byte [esp + 0x198], bl
jb 0x4044be
mov edx, dword [esp + 0x54]
push edx
call fcn.004054f0
add esp, 4
jmp 0x4044be
lea eax, [esp + 0x1bc]
push eax
lea ecx, [esp + 0x54]
push str.launcher.
push ecx
call fcn.00402c30
push 0x424934
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x1b0], 6
call fcn.00402cf0
add esp, 0x18
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x1a4], 7
call fcn.00402450
mov esi, 0x10
cmp dword [esp + 0x4c], esi
jb 0x40448c
mov eax, dword [esp + 0x38]
push eax
call fcn.004054f0
add esp, 4
cmp dword [esp + 0x68], esi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebp
mov byte [esp + 0x38], 0
mov byte [esp + 0x198], bl
jb 0x4044b7
mov ecx, dword [esp + 0x54]
push ecx
call fcn.004054f0
add esp, 4
mov edi, esi
mov esi, 0xf
cmp dword [esp + 0x84], edi
mov eax, dword [esp + 0x70]
jae 0x4044cf
lea eax, [esp + 0x70]
mov edx, dword [esp + 0x80]
push edx
push ebp
push eax
lea ecx, [esp + 0x1ac]
call fcn.00401950
cmp eax, 0xffffffff
je 0x404783
mov ecx, dword [esp + 0x80]
push 1
push eax
lea esi, [ecx + eax]
lea ecx, [esp + 0x1a8]
push 0x424930
call fcn.00401950
cmp byte [esp + 0x1dc], 0
je 0x40451a
sub eax, ebx
jmp 0x40451d
sub eax, 1
cmp eax, 0xffffffff
je 0x4045b4
sub eax, esi
push eax
push esi
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x1ac]
call fcn.00402bf0
push 0xffffffffffffffff
push ebp
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1a4], 8
call fcn.00402450
cmp dword [esp + 0x4c], edi
mov byte [esp + 0x198], bl
jb 0x40456a
mov eax, dword [esp + 0x38]
push eax
call fcn.004054f0
add esp, 4
xor esi, esi
cmp byte [esp + 0x1e0], 0
je 0x4046f1
cmp dword [0x42d140], ebp
jle 0x4045b4
cmp dword [esp + 0x30], edi
mov eax, dword [esp + 0x1c]
jae 0x404590
lea eax, [esp + 0x1c]
mov ecx, dword [esi*4 + 0x42d02c]
push ecx
push eax
call fcn.0041f894
add esp, 8
test eax, eax
je 0x4046c8
add esi, 1
cmp esi, dword [0x42d140]
jl 0x404582
mov esi, 0xf
cmp byte [esp + 0x1dc], 0
je 0x4047a2
cmp dword [esp + 0x1d4], edi
mov eax, dword [esp + 0x1c0]
jae 0x4045de
lea eax, [esp + 0x1c0]
push str.nolaunch
push eax
call fcn.0041f894
add esp, 8
test eax, eax
je 0x4047a2
cmp byte [esp + 0x1e0], 0
jne 0x4047a2
lea eax, [esp + 0x88]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebp
mov byte [esp + 0x38], 0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404620
sub eax, edx
push eax
lea ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00402530
push 0xffffffffffffffff
push ebp
lea edx, [esp + 0x1c4]
push edx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1a4], 9
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], ebp
mov byte [esp + 0x60], 0
call fcn.00402450
lea eax, [esp + 0x50]
push eax
mov ecx, 0x42f068
mov byte [esp + 0x19c], 0xa
call fcn.004041c0
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x3c]
push ecx
mov ecx, eax
call fcn.00402450
cmp dword [esp + 0x68], edi
jb 0x40469f
mov edx, dword [esp + 0x54]
push edx
call fcn.004054f0
add esp, 4
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebp
mov byte [esp + 0x54], 0
jb 0x4047b7
mov eax, dword [esp + 0x38]
push eax
call fcn.004054f0
add esp, 4
jmp 0x4047b7
mov eax, dword [esi*4 + 0x42d008]
lea edx, [esp + 0x88]
mov dword [0x42d004], esi
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4046e0
jmp 0x4045b4
mov ecx, dword [esp + 0x2c]
cmp esi, ecx
lea ebx, [esp + 0x88]
mov edi, 1
jbe 0x40470e
call fcn.00410f32
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x40471d
lea eax, [esp + 0x1c]
cmp byte [eax + esi], 0x5c
jne 0x40474b
cmp edi, ecx
jbe 0x404730
call fcn.00410f32
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x40473f
lea eax, [esp + 0x1c]
cmp byte [eax + edi], 0x5c
jne 0x40474b
add esi, 1
add edi, 1
cmp esi, ecx
jbe 0x404758
call fcn.00410f32
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x30], 0x10
mov eax, dword [esp + 0x1c]
jae 0x404767
lea eax, [esp + 0x1c]
mov dl, byte [eax + esi]
mov byte [ebx], dl
add esi, 1
add edi, 1
add ebx, 1
cmp esi, ecx
jbe 0x40470e
mov edi, 0x10
jmp 0x4045b4
push 0x42490c
lea eax, [esp + 0x8c]
push 0x101
push eax
call fcn.004118e3
add esp, 0xc
jmp 0x4045b9
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x88]
push ecx
push edx
call fcn.004017d0
add esp, 8
cmp dword [esp + 0x30], edi
jb 0x4047ca
mov eax, dword [esp + 0x1c]
push eax
call fcn.004054f0
add esp, 4
cmp dword [esp + 0x84], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
jb 0x4047ed
mov ecx, dword [esp + 0x70]
push ecx
call fcn.004054f0
add esp, 4
cmp dword [esp + 0x1b8], edi
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], ebp
mov byte [esp + 0x70], 0
jb 0x404819
mov edx, dword [esp + 0x1a4]
push edx
call fcn.004054f0
add esp, 4
cmp dword [esp + 0x1d4], edi
mov dword [esp + 0x1b8], esi
mov dword [esp + 0x1b4], ebp
mov byte [esp + 0x1a4], 0
jb 0x404848
mov eax, dword [esp + 0x1c0]
push eax
call fcn.004054f0
add esp, 4
mov ecx, dword [esp + 0x190]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.0041133e
add esp, 0x188
ret