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

Disassembly:
push 0xffffffffffffffff
push 0x5012fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
mov ecx, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0xa4]
push ebp
xor ebp, ebp
cmp ecx, ebp
push esi
lea eax, [ebx + 0x12]
push edi
mov dword [esp + 0x2c], eax
je 0x4a3588
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
mov dword [esp + 0x34], ecx
mov cx, word [ebx + 0xc]
mov dword [esp + 0x38], edx
mov dx, word [ebx + 0xe]
mov word [esp + 0x3c], cx
mov cx, word [ebx + 0x10]
mov word [esp + 0x3e], dx
mov dx, word [eax]
mov ax, word [ebx + 0x14]
add ebx, 0x18
mov word [esp + 0x40], cx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], ebx
mov word [esp + 0x42], dx
mov word [esp + 0x44], ax
mov dword [esp + 0xb0], ecx
mov ebx, ecx
movsx edx, word [ebx + 0xa]
movsx eax, word [ebx + 0xe]
movsx esi, word [ebx + 8]
movsx ecx, word [ebx + 0xc]
add eax, edx
add ecx, esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xa4]
lea edx, [esp + 0x48]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x1c]
push edx
push ecx
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
mov eax, 4
cmp ecx, eax
mov dword [esp + 0x1c], ebp
jb 0x4a360e
mov edi, dword [esi]
sub ecx, eax
add esi, eax
cmp edi, ebp
mov dword [esp + 0xbc], ecx
jbe 0x4a360e
push edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xbc]
add edi, edi
add esi, edi
sub eax, edi
mov dword [esp + 0xbc], eax
mov dword [esp + 0x18], ebp
call fcn.004d41f0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0xb4]
cmp di, 0x37a
mov dword [esp + 0x9c], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
je 0x4a3651
cmp di, 0x37b
jne 0x4a372b
mov eax, dword [esi]
lea ebp, [eax - 0xc]
add esi, 0xc
test ebp, ebp
mov dword [esp + 0x30], eax
jbe 0x4a371e
mov edi, dword [esi]
mov bx, word [esi + 4]
add esi, 4
add esi, 2
sub ebp, 6
cmp edi, 0x80010001
jne 0x4a36cc
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add esi, 4
add esi, 0xc
sub ebp, 0x10
test esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jne 0x4a369a
xor eax, eax
jmp 0x4a36a9
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a36a0
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.0040165c
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 0xc]
or ecx, 0xffffffff
sub ecx, eax
lea esi, [esi + eax + 1]
add ebp, ecx
mov dword [esp + 0x28], ebx
jmp 0x4a3704
push 0x1c
call fcn.004d4190
add esp, 4
mov dword [esp + 0x58], eax
test eax, eax
mov byte [esp + 0x9c], 1
je 0x4a36f6
mov edx, dword [esp + 0x18]
push ebx
push edi
push edx
mov ecx, eax
call fcn.004a7a20
jmp 0x4a36f8
xor eax, eax
mov byte [esp + 0x9c], 0
mov dword [esp + 0x18], eax
test ebp, ebp
ja 0x4a3665
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0xb4]
sub dword [esp + 0xbc], eax
add edi, 0xfffc
mov eax, dword [esp + 0x2c]
cmp word [eax], 0x7b
jne 0x4a3743
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
jmp 0x4a374f
lea edx, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
mov ebp, eax
mov eax, dword [esp + 0xbc]
push 0
push eax
push esi
lea ecx, [esp + 0x78]
call fcn.004e4ab0
xor ecx, ecx
cmp di, 0x378
sete cl
lea edx, [esp + 0x6c]
mov byte [esp + 0x9c], 2
mov dword [esp + 0x10], 0
dec ecx
and ecx, edx
test ebp, ebp
mov esi, ecx
jl 0x4a385b
mov ebp, dword [esp + 0xa4]
mov ecx, ebp
call fcn.004a3ed0
test eax, eax
je 0x4a385b
mov ecx, dword [esp + 0x1c]
xor edx, edx
cmp di, 0x377
sete dl
lea eax, [esp + 0x10]
push eax
movzx eax, word [ebx + 0x10]
push ecx
push edx
mov edx, dword [ebx]
push esi
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp + 0x48]
push edx
push 0
lea eax, [esp + 0x7c]
push eax
push 0
call fcn.004a5000
test eax, eax
je 0x4a385b
mov ecx, dword [esp + 0x10]
push 1
call fcn.004a69a0
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
push 0x13
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [ecx + 0x90], edx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
add ecx, 0xa0
push eax
call fcn.004016ca
mov ecx, dword [esp + 0x10]
mov dx, word [esp + 0x28]
mov word [ecx + 0x94], dx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x98], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov dword [edx + 0x9c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
je 0x4a386e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp]
test eax, eax
mov byte [esp + 0x8c], 0
je 0x4a38d8
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0xb0]
mov dword [edx], ecx
lea ecx, [esp + 0x5c]
call fcn.004e4f10
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a38bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
add esp, 0x90
ret 0x20
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x5c]
mov dword [eax], 0
call fcn.004e4f10
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a3917
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x84]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x90
ret 0x20