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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x498731
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x19dc
call fcn.004943d0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax + 8]
push ebx
push esi
push edi
mov dword [esp + 0x1c], ecx
cmp ecx, 0xff
jb 0x457f94
mov ecx, 0xfe
mov dword [esp + 0x1c], ecx
mov ebx, dword [ebp + 0x18]
test bl, 0xc
je 0x457fa7
mov esi, 1
mov dword [esp + 0x10], esi
jmp 0x457fb4
mov eax, ebx
and eax, 1
add eax, eax
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x1f8]
mov dword [esp + 0x18], edx
xor edx, edx
mov dword [esp + 0x14], ecx
cmp eax, edx
jle 0x458022
cmp eax, dword [0x4ae25c]
jg 0x458020
mov edi, dword [0x4ae264]
mov eax, dword [edi + eax*4 - 4]
mov dword [esp + 0x9f8], eax
mov dword [esp + 0x9fc], edx
lea edx, [esp + 0x9f8]
lea eax, [ecx + 1]
mov dword [esp + 0xa00], 5
mov dword [esp + 0x1f8], edx
mov dword [esp + 0x14], eax
cmp esi, 2
jne 0x458086
test bl, 2
je 0x458086
mov dword [esp + 0x10], 0x100002
jmp 0x458086
cmp eax, edx
je 0x458040
mov eax, 0x80020003
mov ecx, dword [esp + 0x19ec]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp esi, 2
jne 0x45807b
test bl, 2
jne 0x458073
mov dword [esp + 0xa00], edx
lea edx, [esp + 0x9f8]
lea eax, [ecx + 1]
mov dword [esp + 0x9f8], 0x49b8bd
mov dword [esp + 0x1f8], edx
mov dword [esp + 0x14], eax
jmp 0x458086
mov dword [esp + 0x10], 0x40000
lea edx, [esp + 0x1fc]
mov dword [esp + 0x18], edx
mov edi, 1
cmp ecx, edi
jb 0x4580db
mov ebx, dword [esp + 0x1c]
shl ebx, 4
lea esi, [esp + 0xa08]
sub ebx, 0x10
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
add eax, ebx
mov ecx, 0x400c
cmp word [eax], cx
jne 0x4580bb
mov eax, dword [eax + 8]
mov edx, ecx
cmp word [eax], dx
je 0x4580b1
push 1
push esi
push eax
call fcn.004562a0
mov dword [esp + edi*4 + 0x204], esi
inc edi
add esp, 0xc
sub ebx, 0x10
add esi, 0x10
cmp edi, dword [esp + 0x1c]
jbe 0x4580a0
mov esi, dword [ebp + 8]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xf8]
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [0x4aa988]
mov dword [esp + 0x30], 0x49b8bd
mov dword [esp + 0x78], 6
mov dword [esp + 0x70], esi
mov ecx, dword [eax + 0xe0]
push ebx
mov dword [esp + 0x6c], ecx
push edi
or ecx, 2
mov dword [eax + 0xe0], ecx
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x7c]
push eax
mov eax, dword [ecx + 0x1c]
lea edx, [esp + 0x40]
push edx
push esi
call eax
test eax, eax
je 0x458178
cmp eax, 4
jne 0x4581b6
test byte [esp + 0x10], 3
je 0x4581b6
test byte [ebp + 0x18], 2
je 0x4581ac
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x1c]
push ebx
push edi
push 0
lea edx, [esp + 0x7c]
push edx
lea eax, [esp + 0x40]
push eax
push esi
mov dword [esp + 0x28], 0
call ecx
test eax, eax
jne 0x458144
mov edx, dword [0x4aa988]
mov eax, dword [edx + 0xe4]
mov ebx, 0x80004005
mov dword [esp + 0x18], ebx
test eax, eax
je 0x45863c
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x4585ed
mov ecx, dword [eax + 8]
cmp ecx, 6
jne 0x4581d2
mov eax, dword [eax]
jmp 0x458213
mov ebx, 0x80020003
jmp 0x45863c
mov edi, dword [ebp + 0x20]
xor ebx, ebx
test edi, edi
je 0x45863c
push ebx
lea ecx, [esp + 0x34]
call fcn.00456780
jmp 0x458639
cmp ecx, 4
jne 0x458211
mov eax, dword [eax]
cmp byte [eax + 0x17], 0
jne 0x4581e4
mov ecx, dword [eax + 0xc]
jmp 0x4581e6
mov ecx, eax
test byte [ecx + 0x15], 2
je 0x4581f9
cmp byte [eax + 0x17], 0
jne 0x4581f5
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
jmp 0x458213
cmp byte [eax + 0x17], 0
jne 0x458204
mov ecx, dword [eax + 0xc]
jmp 0x458206
mov ecx, eax
test byte [ecx + 0x15], 4
je 0x458211
call fcn.00430500
xor eax, eax
push 0
push 0x4abe90
push 0x4aa314
push 0
push eax
call fcn.004969b2
mov edi, eax
add esp, 0x14
mov dword [esp + 0x14], edi
test edi, edi
je 0x4585ed
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov eax, 0x80020009
mov dword [esp + 0x18], eax
mov dword [esi + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x900]
push edx
lea ebx, [esp + 0xfc]
lea eax, [esp + 0x8c]
mov dword [esp + 0x94], 5
mov dword [esp + 0x8c], str.Message
mov dword [esp + 0x90], 0
call fcn.0046f4d0
xor edi, edi
cmp eax, edi
je 0x458359
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
cmp eax, 5
jne 0x4582c7
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xf8]
lea eax, [esp + 0x20]
call fcn.0044f680
mov dword [esp + 0x48], edi
mov byte [esp + 0x4c], 0
push edi
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1a00], edi
lea eax, [esp + 0x50]
mov dword [esp + 0x50], vtable.CStringWCharFromChar.0
call fcn.00471ea0
mov dword [esp + 0x1a00], 0xffffffff
mov ebx, dword [esp + 0x54]
add esp, 0xc
cmp ebx, edi
je 0x458318
mov eax, dword [ebx]
cmp eax, edi
jne 0x45831d
mov eax, 0x4a16b8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 8], eax
mov dword [esp + 0x44], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
cmp ebx, edi
je 0x458359
mov eax, dword [ebx + 0x10]
dec eax
mov dword [ebx + 0x10], eax
jne 0x458359
mov ebx, dword [esp + 0x48]
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x458350
push eax
call fcn.00487ee8
add esp, 4
push ebx
call fcn.00487c48
add esp, 4
lea eax, [esp + 0xf4]
push eax
lea ecx, [esp + 0xc8]
push ecx
lea edx, [esp + 0x800]
mov dword [esp + 0xa4], edi
mov edi, dword [esp + 0x1c]
push edx
lea ebx, [esp + 0xf8]
lea eax, [esp + 0xa4]
mov dword [esp + 0xac], 5
mov dword [esp + 0xa4], str.What
call fcn.0046f4d0
xor edi, edi
cmp eax, edi
je 0x458462
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
cmp eax, 5
jne 0x4583cc
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xf8]
lea eax, [esp + 0x20]
call fcn.0044f680
mov dword [esp + 0x54], edi
mov byte [esp + 0x58], 0
push edi
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1a00], 1
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], vtable.CStringWCharFromChar.0
call fcn.00471ea0
mov dword [esp + 0x1a00], 0xffffffff
mov ebx, dword [esp + 0x60]
add esp, 0xc
cmp ebx, edi
je 0x458421
mov eax, dword [ebx]
cmp eax, edi
jne 0x458426
mov eax, 0x4a16b8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 4], eax
mov dword [esp + 0x50], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
cmp ebx, edi
je 0x458462
mov eax, dword [ebx + 0x10]
dec eax
mov dword [ebx + 0x10], eax
jne 0x458462
mov ebx, dword [esp + 0x54]
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x458459
push eax
call fcn.00487ee8
add esp, 4
push ebx
call fcn.00487c48
add esp, 4
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0xec]
push ecx
lea edx, [esp + 0x600]
mov dword [esp + 0xbc], edi
mov edi, dword [esp + 0x1c]
push edx
lea ebx, [esp + 0xa0]
lea eax, [esp + 0xbc]
mov dword [esp + 0xc4], 5
mov dword [esp + 0xbc], 0x49fa7c
call fcn.0046f4d0
xor edi, edi
cmp eax, edi
je 0x45856b
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
cmp eax, 5
jne 0x4584d5
mov dword [esp + 0x24], edi
lea ecx, [esp + 0xf8]
lea eax, [esp + 0x20]
call fcn.0044f680
mov dword [esp + 0x60], edi
mov byte [esp + 0x64], 0
push edi
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1a00], 2
lea eax, [esp + 0x68]
mov dword [esp + 0x68], vtable.CStringWCharFromChar.0
call fcn.00471ea0
mov dword [esp + 0x1a00], 0xffffffff
mov ebx, dword [esp + 0x6c]
add esp, 0xc
cmp ebx, edi
je 0x45852a
mov eax, dword [ebx]
cmp eax, edi
jne 0x45852f
mov eax, 0x4a16b8
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 0xc], eax
mov dword [esp + 0x5c], vtable.CKuStringT_wchar_t__class_CKuStringUtilW_.0
cmp ebx, edi
je 0x45856b
mov eax, dword [ebx + 0x10]
dec eax
mov dword [ebx + 0x10], eax
jne 0x45856b
mov ebx, dword [esp + 0x60]
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x458562
push eax
call fcn.00487ee8
add esp, 4
push ebx
call fcn.00487c48
add esp, 4
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x700]
mov dword [esp + 0xd4], edi
mov edi, dword [esp + 0x1c]
push edx
lea ebx, [esp + 0xf0]
lea eax, [esp + 0xd4]
mov dword [esp + 0xdc], 5
mov dword [esp + 0xd4], str.Line
call fcn.0046f4d0
test eax, eax
je 0x4585ed
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
cmp eax, 5
jne 0x4585dc
mov dword [esp + 0x24], 0
push 0
lea ecx, [esp + 0x24]
call fcn.0044f540
add esp, 4
mov dword [esi + 0x10], eax
mov esi, dword [0x4aa988]
mov eax, dword [esi + 0xe4]
cmp dword [eax + 8], 6
jne 0x458609
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi + 0xe4]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x45861f
push eax
call fcn.00487ee8
add esp, 4
mov ecx, dword [esi + 0xe4]
push ecx
call fcn.00487c48
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0xe4], 0
add esp, 4
mov edx, dword [esp + 0x68]
mov eax, dword [0x4aa988]
mov dword [eax + 0xe0], edx
cmp dword [esp + 0x38], 6
jne 0x45865e
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45866f
push eax
call fcn.00487ee8
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, 1
jb 0x4586af
lea esi, [esp + 0xa10]
mov edi, eax
mov eax, dword [esi]
cmp eax, 6
jne 0x458695
mov eax, dword [esi - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4586a9
test eax, eax
jne 0x4586a9
mov eax, dword [esi + 4]
test eax, eax
je 0x4586a9
push eax
call fcn.00487ee8
add esp, 4
add esi, 0x10
dec edi
jne 0x458681
mov ecx, dword [esp + 0x19ec]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x24