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

Disassembly:
mov eax, 0x4228f0
call fcn.0041410c
sub esp, 0x178
push ebx
xor eax, eax
push ebp
mov dword [esp + 8], eax
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
push edi
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], eax
mov byte [esp + 0x3c], al
mov dword [esp + 0x190], 1
mov eax, dword [0x42e1c8]
mov esi, dword [0x42e1cc]
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, eax
not ecx
mov edi, 0x177
and ecx, edi
neg ecx
sbb ecx, ecx
neg ecx
lea edx, [eax + eax]
or edx, ecx
mov dword [0x42e1c8], edx
test esi, esi
jne 0x41250d
push 0x1e7
mov eax, 0x425450
push eax
push eax
xor ebp, ebp
push ebp
call ebx
mov edx, dword [0x42e1c8]
mov esi, dword [0x42e1cc]
jmp 0x41250f
xor ebp, ebp
mov eax, edx
not eax
and eax, edi
neg eax
sbb eax, eax
neg eax
add edx, edx
or edx, eax
mov ecx, edx
not ecx
and ecx, edi
neg ecx
sbb ecx, ecx
neg ecx
lea eax, [edx + edx]
or eax, ecx
or esi, 0x2c1
mov dword [0x42e1cc], esi
mov esi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x42e1c8], eax
jne 0x41254c
push ebp
call esi
mov edi, dword [esp + 0x1a4]
test edi, edi
je 0x412562
push edi
call fcn.00402826
pop ecx
push eax
push edi
jmp 0x4125c0
mov ecx, dword [0x430e24]
test ecx, ecx
je 0x4125a3
lea eax, [ecx + 0xe8]
push eax
push 1
call fcn.0040e6e9
cmp dword [eax], ebp
je 0x4125a3
mov ecx, dword [0x430e24]
lea eax, [ecx + 0xe8]
push eax
push 1
call fcn.0040e6e9
lea ecx, [esp + 0x84]
push ecx
push 0x104
call dword [eax]
jmp 0x4125a5
mov eax, ebp
test eax, eax
je 0x4125c9
lea eax, [esp + 0x84]
push eax
call fcn.00402826
pop ecx
push eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x44]
call fcn.004023b0
push dword [esp + 0x1a0]
lea ecx, [esp + 0x1c]
call fcn.004013c9
mov byte [esp + 0x190], 2
mov edx, dword [0x42e1cc]
push 0x38
pop eax
cmp edx, eax
cmove edx, eax
mov eax, dword [0x42e1c8]
mov ecx, eax
not ecx
and ecx, 0x177
neg ecx
sbb ecx, ecx
neg ecx
add eax, eax
or eax, ecx
shl edx, 0xc
or edx, 0x23c001
mov dword [0x42e1c8], eax
mov dword [0x42e1cc], edx
jne 0x412641
push ebp
call esi
mov edx, dword [0x42e1cc]
test edx, edx
jne 0x412641
push ebp
call esi
mov edx, dword [0x42e1cc]
test edx, edx
jne 0x412641
push ebp
call esi
mov edx, dword [0x42e1cc]
shl edx, 6
or edx, 1
mov dword [0x42e1cc], edx
jne 0x412652
push ebp
call esi
push 0x10
pop edi
push dword [0x42e1f8]
cmp dword [0x42e1fc], edi
mov eax, 0x42e1e8
cmovae eax, dword [0x42e1e8]
push ebp
push eax
lea ecx, [esp + 0x24]
call fcn.0040d1b3
cmp eax, 0xffffffff
je 0x41275a
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
cmp edx, edi
lea eax, [esp + 0x18]
cmovae eax, esi
cmp byte [eax], 0x2f
je 0x412740
cmp edx, edi
lea eax, [esp + 0x18]
cmovae eax, esi
cmp byte [eax], 0x5c
je 0x412740
cmp edx, edi
lea eax, [esp + 0x18]
cmovae eax, esi
cmp byte [eax], 0
je 0x4126ca
cmp edx, edi
lea eax, [esp + 0x18]
cmovae eax, esi
cmp byte [eax + 1], 0x3a
je 0x412740
or dword [0x42e1cc], 0x3fb
cmp dword [esp + 0x50], edi
lea ecx, [esp + 0x3c]
cmovae ecx, dword [esp + 0x3c]
cmp edx, edi
lea eax, [esp + 0x18]
push ecx
cmovae eax, esi
push eax
push dword [esp + 0x1a4]
call fcn.004118a4
add esp, 0xc
mov dword [esp + 0x10], 1
mov byte [esp + 0x190], 1
lea ecx, [esp + 0x18]
call fcn.004016a6
mov byte [esp + 0x190], 0
lea ecx, [esp + 0x3c]
call fcn.004016a6
mov ecx, dword [esp + 0x188]
mov eax, dword [esp + 0x19c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret
cmp edx, edi
lea eax, [esp + 0x18]
cmovae eax, esi
push eax
push dword [esp + 0x1a0]
call fcn.00411727
pop ecx
pop ecx
jmp 0x4126fb
push dword [esp + 0x1a8]
lea ecx, [esp + 0x34]
call fcn.0040ea55
mov byte [esp + 0x190], 3
lea eax, [esp + 0x3c]
push eax
push 1
push dword [esp + 0x38]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
mov dword [0x42e1cc], 0x20000001
call fcn.0040f513
mov eax, dword [0x42e1c8]
mov ecx, eax
not ecx
and ecx, 0x177
neg ecx
sbb ecx, ecx
neg ecx
add eax, eax
or eax, ecx
cmp dword [0x42e1cc], 0
mov dword [0x42e1c8], eax
jne 0x4127e5
push 0x241
mov eax, 0x425454
push eax
push eax
push 0
call ebx
cmp dword [0x42e1cc], 0
jne 0x4127e5
push 0x1cc
mov eax, 0x425458
push eax
push eax
push 0
call ebx
mov esi, dword [esp + 0x30]
jmp 0x41284c
cmp dword [esp + 0x2c], edi
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
cmp dword [esi + 0x14], edi
jb 0x412801
mov ecx, dword [esi]
jmp 0x412803
mov ecx, esi
push eax
push ecx
lea eax, [esp + 0x5c]
push str._s__s
push eax
call fcn.00407cf8
mov byte [esp + 0x1a0], 4
cmp dword [esp + 0x78], edi
lea eax, [esp + 0x64]
cmovae eax, dword [esp + 0x64]
push 0
push eax
call fcn.00411434
add esp, 0x18
test al, al
jne 0x4128b3
mov byte [esp + 0x190], 3
lea ecx, [esp + 0x54]
call fcn.004016a6
add esi, 0x18
cmp esi, dword [esp + 0x34]
jne 0x4127eb
push dword [esp + 0x1a0]
lea eax, [esp + 0x70]
push str.file__s_not_found_in_search_path
push eax
call fcn.00407cf8
add esp, 0xc
mov byte [esp + 0x190], 5
cmp dword [eax + 0x14], edi
jb 0x41287a
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.00413f54
mov byte [esp + 0x190], 6
mov dword [esp + 0x54], vtable.std::runtime_error.0
mov byte [esp + 0x190], 5
push 0x42cc6c
lea eax, [esp + 0x58]
push eax
call fcn.004140ae
cmp dword [esp + 0x68], edi
lea eax, [esp + 0x54]
cmovae eax, dword [esp + 0x54]
push eax
push dword [esp + 0x1a0]
call fcn.00411727
pop ecx
pop ecx
mov dword [esp + 0x10], 1
mov byte [esp + 0x190], 3
lea ecx, [esp + 0x54]
call fcn.004016a6
mov byte [esp + 0x190], 2
lea ecx, [esp + 0x30]
call fcn.0040b6be
jmp 0x412703