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

Disassembly:
push 0xffffffffffffffff
push 0x40af7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
push edi
xor ebp, ebp
push 0x40f910
push ebp
mov dword [0x40f4f0], ebx
xor esi, esi
mov dword [esp + 0x18], ebp
call fcn.00403390
mov edi, dword [esp + 0x78]
add esp, 8
push 0x2d
push edi
call fcn.00402e80
add esp, 8
cmp eax, ebp
jne 0x40192e
push 0x2f
push edi
call fcn.00402e80
add esp, 8
cmp eax, ebp
je 0x401964
lea esi, [eax + 1]
push 9
push str.Embedding
push esi
call fcn.0040ad60
add esp, 0xc
test eax, eax
jne 0x40194c
mov esi, 1
jmp 0x401972
mov al, byte [esi]
cmp al, 0x75
je 0x40195d
cmp al, 0x55
je 0x40195d
mov esi, 4
jmp 0x401972
mov esi, 5
jmp 0x401972
cmp byte [edi], 0
je 0x401972
mov esi, 3
mov dword [esp + 0x10], edi
cmp esi, 5
ja case.0x40197b.1
jmp dword [esi*4 + 0x401c2c]
push 1
push ebx
call fcn.004017e0
add esp, 8
push ebp
push 3
call fcn.00401740
add esp, 8
mov eax, 1
jmp 0x401c16
push ebp
push ebx
call fcn.004017e0
add esp, 8
mov eax, 1
jmp 0x401c16
push ebp
push 6
call fcn.00401740
add esp, 8
xor eax, eax
jmp 0x401c16
mov eax, dword [esp + 0x10]
push ebp
push eax
call fcn.00402940
add esp, 8
mov eax, 1
jmp 0x401c16
push ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], ebp
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jge 0x4019fa
xor eax, eax
jmp 0x401c16
lea ecx, [esp + 0x18]
lea edx, [esp + 0x70]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
push ebp
mov dword [esp + 0x28], ebp
call fcn.00401070
add esp, 0x10
cmp eax, ebp
jl 0x401b21
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x14]
push edx
push 0x40b068
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x401a50
mov eax, dword [esp + 0x14]
push ebp
push ebp
push ebp
mov ecx, dword [eax]
push ebp
push ebp
push 0xffffffffffffffff
push eax
call dword [ecx + 0x2c]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 1
push ebp
push ebp
lea eax, [esp + 0x48]
push ebp
push eax
call esi
test eax, eax
je 0x401aab
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
push ecx
push edx
call ebp
test eax, eax
jne 0x401a96
lea eax, [esp + 0x3c]
push eax
call edi
lea ecx, [esp + 0x3c]
push ecx
call ebx
push 1
push 0
push 0
lea edx, [esp + 0x48]
push 0
push edx
call esi
test eax, eax
jne 0x401a78
xor ebp, ebp
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00402940
mov eax, dword [esp + 0x20]
add esp, 8
cmp eax, ebp
jne 0x401afd
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x10]
push ecx
push 0x40b068
mov edx, dword [eax]
push eax
call dword [edx]
cmp eax, ebp
jl 0x401afd
push ebp
push 0x7d0
call dword [sym.imp.KERNEL32.dll_SleepEx]
push ebp
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x70]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x68]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, 1
jmp 0x401c16
push ebp
push 4
call fcn.00401740
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, 1
jmp 0x401c16
push ebp
call dword [sym.imp.ole32.dll_OleInitialize]
test eax, eax
jge 0x401b4e
xor eax, eax
jmp 0x401c16
push 8
call fcn.00402ec0
add esp, 4
mov dword [esp + 0x68], eax
cmp eax, ebp
mov dword [esp + 0x60], ebp
je 0x401b6f
mov ecx, eax
call fcn.00401590
mov esi, eax
jmp 0x401b71
xor esi, esi
cmp esi, ebp
mov dword [esp + 0x60], 0xffffffff
jne 0x401b84
xor eax, eax
jmp 0x401c16
mov ebx, dword [esi]
push esi
mov dword [esp + 0x6c], ebx
call dword [ebx + 4]
lea edx, [esp + 0x1c]
push edx
push ebp
push 4
push esi
push 0x40c030
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
cmp eax, ebp
jl 0x401c08
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebp
push ebp
lea eax, [esp + 0x28]
push ebp
push eax
call edi
test eax, eax
je 0x401bfd
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x401be8
lea eax, [esp + 0x20]
push eax
call ebp
lea ecx, [esp + 0x20]
push ecx
call ebx
push 0
push 0
lea edx, [esp + 0x28]
push 0
push edx
call edi
test eax, eax
jne 0x401bc6
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
push esi
call dword [ebx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0x10