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

Disassembly:
push 0xffffffffffffffff
push 0x55ec19
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x668038]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x2c], ebp
push ebp
push 0x675ee8
push 0x675f04
mov dword [esp + 0x24], ebp
mov eax, dword [esp + 0x48]
push ebp
push eax
call sub.MSVCR90.dll___RTDynamicCast
mov edi, dword [esp + 0x4c]
add esp, 0x14
mov ecx, edi
mov ebx, eax
call fcn.004992d0
mov dword [esp + 0x2c], ebp
lea eax, [ebx + 0x8f0]
mov dword [esp + 0x18], 1
call fcn.00403be0
test al, al
jne 0x4059eb
mov ebp, dword [esp + 0x40]
mov eax, ebp
mov esi, 0x5fd800
call fcn.00499c50
test al, al
jne 0x40595f
mov esi, 0x604c34
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
mov ecx, ebx
call eax
cmp dword [eax + 0x14], 0
jne 0x405990
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
push eax
call fcn.004633b0
mov ebx, eax
mov dword [esp + 0x2c], 1
jmp 0x4059b1
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
mov ecx, ebx
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x70]
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call edx
mov ebx, eax
mov dword [esp + 0x2c], 2
call sub.CommonUI67U.dll_wchar_t_const____cdecl_VGetAppName_void_
push eax
push esi
mov eax, ebx
call fcn.00408130
push eax
mov eax, ebp
call fcn.00408130
push eax
push str._1_2_3____4
push edi
call fcn.00499d40
add esp, 0x18
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x40]
call fcn.00499450
mov eax, edi
jmp 0x405ccf
lea eax, [ebx + 0x904]
test eax, eax
je 0x4059fd
lea eax, [ebx + 0x910]
jmp 0x4059ff
xor eax, eax
lea esi, [esp + 0x3c]
call fcn.004992f0
mov dword [esp + 0x2c], 3
mov eax, esi
call fcn.00499c00
test eax, eax
jle 0x405c92
nop
mov edi, ebp
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x25
lea eax, [esp + 0x3c]
je 0x405a4b
call fcn.0049a170
mov ax, word [eax]
mov ecx, dword [esp + 0x38]
call fcn.00499600
jmp 0x405c7c
inc ebp
call fcn.00499c00
cmp ebp, eax
je 0x405c7c
mov edi, ebp
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x73
je 0x405c69
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x53
je 0x405c69
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x68
je 0x405c33
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x48
je 0x405c33
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x70
je 0x405bdc
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x50
je 0x405bdc
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x75
je 0x405ba3
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x55
je 0x405ba3
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x78
je 0x405b99
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x58
je 0x405b99
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x69
je 0x405b5d
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x49
je 0x405b5d
lea eax, [esp + 0x3c]
call fcn.0049a170
cmp word [eax], 0x25
jne 0x405c7c
mov ecx, dword [esp + 0x38]
mov eax, 0x25
call fcn.00499600
jmp 0x405c7c
push 0
or edi, 0xffffffff
mov eax, 0x604c60
lea esi, [esp + 0x18]
call fcn.004993c0
mov byte [esp + 0x2c], 7
mov edi, dword [esp + 0x38]
mov ecx, esi
push ecx
call fcn.00499570
mov byte [esp + 0x2c], 3
mov ecx, esi
call fcn.00499450
mov byte [ebx + 0x1361], 1
jmp 0x405c7c
mov edx, dword [esp + 0x44]
push edx
jmp 0x405c73
mov eax, dword [ebx]
mov edx, dword [eax + 0x54]
mov ecx, ebx
call edx
mov edx, dword [eax]
mov edx, dword [edx + 0x78]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call edx
mov byte [esp + 0x2c], 6
mov edi, dword [esp + 0x38]
push eax
call fcn.00499570
mov byte [esp + 0x2c], 3
lea ecx, [esp + 0x1c]
call fcn.00499450
jmp 0x405c7c
lea ecx, [esp + 0x34]
call fcn.004992d0
mov byte [esp + 0x2c], 5
mov eax, dword [ebx]
mov edx, dword [eax + 0x54]
mov ecx, ebx
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x94]
call eax
movzx ecx, ax
push ecx
lea edx, [esp + 0x38]
push str._1_d_
push edx
call fcn.00499d40
mov edi, dword [esp + 0x44]
add esp, 0xc
lea eax, [esp + 0x34]
push eax
call fcn.00499570
mov byte [esp + 0x2c], 3
lea ecx, [esp + 0x34]
call fcn.00499450
jmp 0x405c7c
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
mov ecx, ebx
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x70]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call edx
mov byte [esp + 0x2c], 4
mov edi, dword [esp + 0x38]
push eax
call fcn.00499570
mov byte [esp + 0x2c], 3
lea ecx, [esp + 0x20]
call fcn.00499450
jmp 0x405c7c
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
mov ecx, ebx
call edx
push eax
mov edi, dword [esp + 0x3c]
call fcn.00499570
lea eax, [esp + 0x3c]
inc ebp
call fcn.00499c00
cmp ebp, eax
jl 0x405a20
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
push edi
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.0049a280
add esp, 0xc
mov byte [esp + 0x2c], 8
call fcn.00499530
mov byte [esp + 0x2c], 3
lea ecx, [esp + 0x40]
call fcn.00499450
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x3c]
call fcn.00499450
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x14