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

Disassembly:
push 0xffffffffffffffff
push 0x4a91a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x28]
call fcn.0042b714
mov eax, dword [0x50f894]
mov dword [esp + 0x94], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], 4
call fcn.004079e0
mov esi, dword [esp + 0x9c]
mov byte [ebp + 0x1c], 0
push 0
mov byte [esp + 0x98], 5
mov eax, dword [esi]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00410650
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x98], 6
call fcn.004a2e8b
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 5
call fcn.004a2d9e
mov eax, dword [esi + 0xc]
test eax, eax
je 0x407652
push 0x50c548
lea ecx, [esp + 0x20]
call fcn.004a2e0c
push eax
lea ecx, [esp + 0x1c]
mov bl, 7
push esi
push ecx
mov byte [esp + 0xa0], bl
call fcn.004a2f81
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 8
call fcn.004a2e8b
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], bl
call fcn.004a2d9e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 5
call fcn.004a2d9e
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x30]
call fcn.0042b7d7
test eax, eax
je 0x407652
mov bl, 9
mov al, byte [ebp + 0x1c]
test al, al
jne 0x407652
lea ecx, [esp + 0x28]
call fcn.0042b9f7
mov edi, eax
mov eax, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
call dword [eax + 0x38]
test eax, eax
je 0x40764a
lea ecx, [esp + 0x28]
call fcn.0042b9be
test eax, eax
jne 0x40764a
push esi
lea ecx, [esp + 0x48]
call fcn.004a2e8b
lea ecx, [esi + 4]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004a2e8b
lea edx, [esi + 8]
lea ecx, [esp + 0x4c]
push edx
call fcn.004a2e8b
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x60], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x70], ecx
mov ecx, dword [esi + 0x38]
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x6c], eax
mov eax, dword [esi + 0x34]
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], edx
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x40]
push ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], eax
call fcn.0042bbef
push eax
lea edx, [esp + 0x20]
push esi
push edx
mov byte [esp + 0xa0], bl
call fcn.004a2f81
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x98], 0xa
call fcn.004a2e8b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], bl
call fcn.004a2d9e
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 5
call fcn.004a2d9e
lea eax, [esp + 0x44]
mov ecx, ebp
push eax
call fcn.00407410
test edi, edi
jne 0x407529
lea ecx, [esp + 0x28]
call fcn.0042b78d
push esi
lea ecx, [ebp + 0x24]
call fcn.004a2e8b
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x407679
mov ecx, dword [ebp + 0x20]
push ecx
push 2
push ebp
call eax
add esp, 0xc
jmp 0x40768d
push 0
push str.warning
push 0x50c54c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea edx, [esi + 4]
lea eax, [esp + 0x1c]
push edx
push esi
push eax
call fcn.004a2f81
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0xb
call fcn.004a2e8b
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 5
call fcn.004a2d9e
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x30]
call fcn.0042b7d7
test eax, eax
mov ebx, 1
je 0x407950
mov al, byte [ebp + 0x1c]
test al, al
jne 0x407950
lea ecx, [esp + 0x28]
call fcn.0042b9f7
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], eax
call fcn.0042b9be
test eax, eax
jne 0x407944
mov al, byte [esi + 0x10]
mov edi, ebx
test al, 0x10
je 0x407725
mov edx, dword [esi + 0x40]
lea ecx, [esp + 0x28]
push edx
call fcn.0042b8b7
mov edi, eax
test edi, edi
je 0x407915
test byte [esi + 0x10], bl
je 0x407770
lea ecx, [esp + 0x28]
call fcn.0042bc4e
mov ecx, dword [esi + 0x1c]
cmp ecx, edx
jg 0x40786e
jl 0x40774b
mov edx, dword [esi + 0x18]
cmp edx, eax
ja 0x40786e
lea ecx, [esp + 0x28]
call fcn.0042bc4e
mov ecx, dword [esi + 0x24]
cmp ecx, edx
jl 0x40786e
jg 0x40776c
mov edx, dword [esi + 0x20]
cmp edx, eax
jb 0x40786e
mov edi, ebx
jmp 0x407778
test edi, edi
je 0x407915
test byte [esi + 0x10], 2
je 0x4077ca
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call fcn.0042b968
push ecx
mov ecx, dword [esi + 0x30]
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], ecx
lea ecx, [esp + 0x14]
call fcn.00407d30
test eax, eax
je 0x40786e
mov edx, dword [esi + 0x34]
push ecx
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esp
mov dword [eax], edx
call fcn.00407d20
test eax, eax
je 0x40786e
mov edi, ebx
jmp 0x4077d2
test edi, edi
je 0x407915
test byte [esi + 0x10], 4
je 0x40781c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call fcn.0042b993
push ecx
mov ecx, dword [esi + 0x28]
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], ecx
lea ecx, [esp + 0x14]
call fcn.00407d30
test eax, eax
je 0x40786e
mov edx, dword [esi + 0x2c]
push ecx
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esp
mov dword [eax], edx
call fcn.00407d20
test eax, eax
je 0x40786e
mov edi, ebx
jmp 0x407824
test edi, edi
je 0x407915
test byte [esi + 0x10], 8
je 0x407875
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
call fcn.0042b93d
push ecx
mov ecx, dword [esi + 0x38]
mov eax, esp
mov dword [esp + 0x28], esp
mov dword [eax], ecx
lea ecx, [esp + 0x14]
call fcn.00407d30
test eax, eax
je 0x40786e
mov edx, dword [esi + 0x3c]
push ecx
mov eax, esp
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], esp
mov dword [eax], edx
call fcn.00407d20
test eax, eax
je 0x40786e
mov edi, ebx
jmp 0x40787d
xor edi, edi
jmp 0x407915
test edi, edi
je 0x407915
test byte [esi + 0x10], 0x20
je 0x4078ba
mov edi, dword [esi + 8]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
call fcn.0042bac6
mov eax, dword [eax]
push edi
push eax
mov ecx, ebp
mov byte [esp + 0x9c], 0xc
call fcn.00407a70
lea ecx, [esp + 0x1c]
mov edi, eax
mov byte [esp + 0x94], 5
call fcn.004a2d9e
test edi, edi
je 0x407915
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0042bac6
mov edx, dword [esp + 0x28]
push 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x98], 0xd
call dword [edx + 0x38]
test eax, eax
je 0x4078f3
push 0x50c53c
lea ecx, [esp + 0x1c]
call fcn.004a3046
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 4]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004a26f2
lea ecx, [esp + 0x18]
mov byte [esp + 0x94], 5
call fcn.004a2d9e
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x407930
mov ecx, dword [ebp + 0x20]
xor edx, edx
test edi, edi
sete dl
push ecx
push edx
push ebp
call eax
add esp, 0xc
jmp 0x407944
push 0
push str.warning
push 0x50c54c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4076dc
mov eax, dword [ebp + 0x20]
push eax
push 4
push ebp
call dword [ebp + 0x18]
add esp, 0xc
mov ecx, ebp
call fcn.00407c70
mov esi, eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x94], 0xf
call fcn.004a2d9e
lea ecx, [esp + 0x48]
mov byte [esp + 0x94], 0xe
call fcn.004a2d9e
lea ecx, [esp + 0x44]
mov byte [esp + 0x94], bl
call fcn.004a2d9e
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 0
call fcn.004a2d9e
lea ecx, [esp + 0x28]
mov dword [esp + 0x94], 0xffffffff
call fcn.0042b751
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x88
ret 4