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

Disassembly:
push 0xffffffffffffffff
push 0x4dc3f9
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x138]
mov ebx, 0x4edc60
lea eax, [esp + 0x18]
lea ecx, [esp + 0x13c]
call fcn.00458f10
mov edi, dword [esp + 0x18]
mov eax, edi
neg eax
sbb eax, eax
test eax, fcn.0042ce20
je 0x406430
lea esp, [esp]
mov ebx, 0x4edc6c
lea eax, [esp + 0x38]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x40607c
mov eax, dword [eax + 8]
test eax, eax
je 0x40607c
push 0xa
push 0
push eax
call fcn.004ba3db
add esp, 0xc
test eax, eax
je 0x40607c
cmp eax, dword [0x50f078]
jne 0x406406
lea eax, [esp + 0x54]
call fcn.00405860
mov ebx, 0x4edc74
lea eax, [esp + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0x130], 0
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x4060b1
mov eax, dword [eax + 8]
mov edx, eax
test eax, eax
jne 0x4060b6
mov edx, 0x4ed9d8
mov eax, edx
lea esi, [eax + 2]
jmp 0x4060c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4060c0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x5c]
call fcn.004020b0
mov ebx, str.text
lea eax, [esp + 0x40]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x4060fb
mov eax, dword [eax + 8]
mov edx, eax
test eax, eax
jne 0x406100
mov edx, 0x4ed9d8
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406105
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x78]
call fcn.004020b0
mov ebx, 0x4edc88
lea eax, [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x406140
mov eax, dword [eax + 8]
mov edx, eax
test eax, eax
jne 0x406145
mov edx, 0x4ed9d8
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406150
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xb0]
call fcn.004020b0
mov ebx, str.params
lea eax, [esp + 0x50]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x40618e
mov eax, dword [eax + 8]
mov edx, eax
test eax, eax
jne 0x406193
mov edx, 0x4ed9d8
mov eax, edx
lea esi, [eax + 2]
jmp 0x4061a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4061a0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xcc]
call fcn.004020b0
mov ebx, 0x4edca0
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x4061de
mov eax, dword [eax + 8]
mov edx, eax
test eax, eax
jne 0x4061e3
mov edx, str.open
mov eax, edx
lea esi, [eax + 2]
jmp 0x4061f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4061f0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0xe8]
call fcn.004020b0
mov ebx, str.desc
lea eax, [esp + 0x48]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x40622e
mov eax, dword [eax + 8]
mov edx, eax
test eax, eax
jne 0x406233
mov edx, 0x4ed9d8
mov eax, edx
lea esi, [eax + 2]
jmp 0x406240
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406240
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x94]
call fcn.004020b0
mov ebx, str.mask
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x40627c
mov eax, dword [eax + 8]
test eax, eax
jne 0x406280
xor eax, eax
jmp 0x40628d
push 0xa
push 0
push eax
call fcn.004ba3db
add esp, 0xc
mov byte [esp + 0xfd], al
mov ebx, str.level
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x4062b3
mov eax, dword [eax + 8]
test eax, eax
jne 0x4062b7
xor eax, eax
jmp 0x4062c4
push 0xa
push 0
push eax
call fcn.004ba3db
add esp, 0xc
mov dword [esp + 0x110], eax
mov ebx, str.icon
lea eax, [esp + 0x34]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x4062ea
mov eax, dword [eax + 8]
test eax, eax
jne 0x4062ee
xor eax, eax
jmp 0x4062fb
push 0xa
push 0
push eax
call fcn.004ba3db
add esp, 0xc
cmp byte [esp + 0xfd], 0
mov dword [esp + 0x114], eax
jbe 0x406369
test eax, eax
je 0x406328
push 1
lea ecx, [esp + 0x108]
push ecx
push 0
push eax
push 0x50f4b0
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
cmp byte [esp + 0xfd], 0
jbe 0x406369
mov ebx, str.situation
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x18]
call fcn.00458f80
mov eax, dword [eax]
test eax, eax
je 0x406351
mov eax, dword [eax + 8]
test eax, eax
jne 0x406355
xor eax, eax
jmp 0x406362
push 0xa
push 0
push eax
call fcn.004ba3db
add esp, 0xc
mov byte [esp + 0xfe], al
mov ebx, 0x4edc60
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
mov byte [esp + 0xff], 0
mov byte [esp + 0x11c], 1
call fcn.00458f10
cmp dword [esp + 0x1c], 0
je 0x4063cf
push 0x1c
call fcn.004b383b
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0x130], 1
test eax, eax
je 0x4063b4
push eax
call fcn.00406da0
jmp 0x4063b6
xor eax, eax
push edi
mov byte [esp + 0x134], 0
push eax
mov dword [esp + 0x114], eax
call fcn.00405fd0
add esp, 8
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
lea edx, [esp + 0x54]
push edx
push eax
push esi
call fcn.00407270
mov ecx, ebp
mov edi, eax
call fcn.00407310
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
lea esi, [esp + 0x54]
mov dword [eax], edi
mov dword [esp + 0x130], 0xffffffff
call fcn.00406460
mov ebx, 0x4edc60
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x18]
call fcn.00458ff0
mov edi, dword [eax]
mov ecx, edi
neg ecx
sbb ecx, ecx
mov dword [esp + 0x18], edi
test ecx, fcn.0042ce20
jne 0x406040
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004b3721
add esp, 0x120
ret