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

Disassembly:
mov eax, 0x4291ec
call fcn.0041bd3c
sub esp, 0x70
push ebp
mov ebp, dword [esp + 0x88]
test ebp, ebp
jne 0x40a0da
xor eax, eax
jmp 0x40a5b8
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
push esi
push edi
cmp byte [esp + 0x13], bl
je 0x40a10f
mov edi, 0x3bc
mov esi, edi
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
dec esi
jne 0x40a0f0
call fcn.00409b0d
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, 3
jae 0x40a128
push str.Local102
push ebx
push ebx
call esi
call fcn.00409b0d
cmp eax, 2
jae 0x40a148
push str.201201
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x40a148
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
je 0x40a164
push ebx
push ebx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemInt]
call fcn.00409b0d
cmp eax, 2
jae 0x40a17d
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], bl
je 0x40a1af
mov edi, 0x324
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0x324
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
dec edi
jne 0x40a18c
call fcn.00409b0d
cmp eax, 3
jae 0x40a1c2
push str.Local830
push ebx
push ebx
call esi
call fcn.00409b0d
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, 2
jae 0x40a1e7
xor eax, eax
push eax
push eax
push eax
push eax
call ebx
test eax, eax
je 0x40a1e7
push eax
call edi
call fcn.00409b0d
cmp eax, 2
jae 0x40a202
push 0
push 1
push 1
push 0
call ebx
test eax, eax
je 0x40a202
push eax
call edi
call fcn.00409b0d
cmp eax, 3
jae 0x40a217
push str.Local876
push 0
push 0
call esi
mov esi, dword [ebp + 0x3c]
xor eax, eax
add esi, ebp
mov byte [esp + 0x13], al
mov dword [esp + 0x20], esi
cmp byte [esp + 0x13], al
je 0x40a25c
mov edi, 0x105
mov esi, edi
jmp 0x40a237
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
dec esi
jne 0x40a235
mov esi, dword [esp + 0x20]
call fcn.00409b0d
cmp eax, 2
jae 0x40a27c
push str.992992
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x40a27c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.00409b0d
cmp eax, 2
jae 0x40a29c
push 0x42d9f0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x40a29c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.00409b0d
cmp eax, 2
jae 0x40a2b9
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
xor edx, edx
mov byte [esp + 0x13], dl
cmp byte [esp + 0x13], dl
je 0x40a2db
push edx
push edx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_SetDlgItemInt]
xor edx, edx
cmp dword [esi + 0x7c], edx
je 0x40a5b3
mov eax, dword [esi + 0x78]
add eax, ebp
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
add ecx, ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
add ecx, ebp
add eax, ebp
mov byte [esp + 0x13], dl
cmp byte [esp + 0x13], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
je 0x40a33e
mov edi, 0x2fe
mov esi, edi
push edx
push edx
push edx
push edx
push edx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
pop edx
dec esi
jne 0x40a31a
call fcn.00409b0d
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp eax, 3
jae 0x40a366
push str.Global690
push edx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40a366
push eax
call edi
call fcn.00409b0d
mov ebp, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, 2
jae 0x40a388
push str.632632
call ebp
test eax, eax
je 0x40a388
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.00409b0d
cmp eax, 2
jae 0x40a3a4
push str.478478
call ebp
test eax, eax
je 0x40a3a4
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.00409b0d
cmp eax, 2
jae 0x40a3c5
push 2
call fcn.0041a976
pop ecx
test eax, eax
je 0x40a3c5
push eax
mov byte [eax + 1], 0xed
call fcn.0040c4f8
pop ecx
call fcn.00409b0d
cmp eax, 2
jae 0x40a3e1
push str.805805
call ebp
test eax, eax
je 0x40a3e1
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.00409b0d
cmp eax, 2
jae 0x40a402
push 2
call fcn.0041a976
pop ecx
test eax, eax
je 0x40a402
push eax
mov byte [eax + 1], 0xca
call fcn.0040c4f8
pop ecx
call fcn.00409b0d
cmp eax, 2
jae 0x40a41e
push str.424424
call ebp
test eax, eax
je 0x40a41e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call fcn.00409b0d
cmp eax, 2
jae 0x40a43d
push 0
push 1
push 1
push 0
call ebx
test eax, eax
je 0x40a43d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00409b0d
mov ebp, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp eax, 2
jae 0x40a460
push str.Local3453
xor eax, eax
push eax
push eax
push eax
call ebx
test eax, eax
je 0x40a460
push eax
call ebp
call fcn.00409b0d
cmp eax, 2
jae 0x40a47d
push str.Local3454
xor eax, eax
push eax
push eax
push eax
call ebx
test eax, eax
je 0x40a47d
push eax
call ebp
call fcn.00409b0d
cmp eax, 2
jae 0x40a49a
xor eax, eax
push eax
push eax
push eax
push eax
call ebx
test eax, eax
je 0x40a49a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x98]
cmp byte [esi], 0xff
je 0x40a56e
push 7
push esi
push str._:hash:
call fcn.0041df78
add esp, 0xc
test eax, eax
je 0x40a4ec
push 7
push esi
push str._:text:
call fcn.0041df78
add esp, 0xc
test eax, eax
je 0x40a4ec
push 0
push esi
call fcn.0041b4b0
pop ecx
push eax
push esi
call fcn.0040c106
add esp, 0xc
mov ebx, eax
jmp 0x40a571
push 0
push esi
call fcn.0041b4b0
pop ecx
sub eax, 7
push eax
lea eax, [esi + 7]
push eax
call fcn.0040c106
add esp, 0xc
mov ebx, eax
call fcn.00409b0d
cmp eax, 3
jae 0x40a52a
push str.Global421
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x40a52a
push eax
call edi
call fcn.00409b0d
cmp eax, 2
jae 0x40a54a
push str.715715
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x40a54a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [esp + 0x13], 0
cmp byte [esp + 0x13], 0
je 0x40a571
push 0
push 0
call dword [sym.imp.USER32.dll_IsDialogMessageA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_SetDlgItemInt]
jmp 0x40a571
mov ebx, dword [esi + 1]
mov eax, dword [esp + 0x18]
xor edi, edi
cmp dword [eax + 0x18], edi
jbe 0x40a5b3
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + edi*4]
test esi, esi
je 0x40a5ad
add esi, dword [esp + 0x94]
push 0
push esi
call fcn.0041b4b0
pop ecx
push eax
push esi
call fcn.0040c106
add esp, 0xc
cmp ebx, eax
je 0x40a5c6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc edi
cmp edi, dword [eax + 0x18]
jb 0x40a580
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x74]
pop ebp
mov dword fs:[0], ecx
leave
ret
call fcn.00409b0d
xor ebx, ebx
cmp eax, 2
jae 0x40a5e1
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
call fcn.00409b0d
cmp eax, 2
jae 0x40a602
push 2
call fcn.0041a976
pop ecx
test eax, eax
je 0x40a602
push eax
mov byte [eax + 1], 0x45
call fcn.0040c4f8
pop ecx
call fcn.00409b0d
cmp eax, 2
jae 0x40a623
push 2
call fcn.0041a976
pop ecx
test eax, eax
je 0x40a623
push eax
mov byte [eax + 1], 0xc6
call fcn.0040c4f8
pop ecx
mov byte [esp + 0x13], bl
cmp byte [esp + 0x13], 0
je 0x40a656
mov esi, 0x191
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0x191
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
dec esi
jne 0x40a633
call fcn.00409b0d
cmp eax, 2
jae 0x40a679
push ebx
push ebx
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
call ebx
test eax, eax
je 0x40a67f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a67f
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 0x13], 0
cmp byte [esp + 0x13], 0
je 0x40a6a1
push 0
push 0
call dword [sym.imp.USER32.dll_IsDialogMessageA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_SetDlgItemInt]
call fcn.00409b0d
cmp eax, 2
jae 0x40a6bf
push str.Local3473
push 1
push 1
push 0
call ebx
test eax, eax
je 0x40a6bf
push eax
call ebp
xor ecx, ecx
mov byte [esp + 0x13], cl
cmp byte [esp + 0x13], cl
je 0x40a6f8
mov esi, 0x1d8
push ecx
push ecx
push ecx
push ecx
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 0x1d8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
pop ecx
dec esi
jne 0x40a6d0
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
call fcn.00409b0d
cmp eax, 2
jae 0x40a724
push str.Local3476
push 1
push 1
push ecx
call ebx
test eax, eax
je 0x40a724
push eax
call ebp
call fcn.00409b0d
cmp eax, 2
jae 0x40a744
push str.979979
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test eax, eax
je 0x40a744
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x20]
cmp esi, dword [ecx + 0x78]
jb 0x40a8a3
mov eax, dword [ecx + 0x7c]
add eax, dword [ecx + 0x78]
cmp esi, eax
jae 0x40a8a3
mov eax, dword [esp + 0x94]
add eax, esi
push eax
lea ecx, [esp + 0x3c]
call fcn.004014e6
and dword [esp + 0x88], 0
push 1
push 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x20], 0x2e
call fcn.00407b7e
mov esi, eax
cmp esi, 0xffffffff
je 0x40a88d
push esi
push 0
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x44]
call fcn.00409b2b
mov byte [esp + 0x88], 1
cmp dword [eax + 0x14], 0x10
jb 0x40a7bd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov byte [esp + 0x88], 0
lea ecx, [esp + 0x50]
call fcn.0040165f
test edi, edi
je 0x40a833
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x44]
call fcn.00409b2b
mov byte [esp + 0x88], 2
cmp dword [eax + 0x14], 0x10
jb 0x40a7ff
mov eax, dword [eax]
push eax
push edi
call fcn.0040a0ba
pop ecx
pop ecx
mov esi, eax
mov byte [esp + 0x88], 0
lea ecx, [esp + 0x68]
call fcn.0040165f
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0040165f
mov eax, esi
jmp 0x40a5b5
xor ecx, ecx
mov byte [esp + 0x13], cl
cmp byte [esp + 0x13], cl
je 0x40a855
push ecx
push ecx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.USER32.dll_SetDlgItemInt]
xor ecx, ecx
call fcn.00409b0d
cmp eax, 2
jae 0x40a870
push str.Local3482
push ecx
push ecx
push ecx
call ebx
test eax, eax
je 0x40a870
push eax
call ebp
call fcn.00409b0d
cmp eax, 2
jae 0x40a88d
xor eax, eax
push eax
push eax
push eax
push eax
call ebx
test eax, eax
je 0x40a88d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x38]
call fcn.0040165f
jmp 0x40a5b3
mov eax, dword [esp + 0x94]
add eax, esi
jmp 0x40a5b5