Function at 0x401db7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x40f364
push 0x18
push 0x4133f8
push 0x18
push 0x40f368
push esi
push 0x4e4
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
call fcn.00401290
mov dword [ebp - 0x10], eax
call fcn.00401602
mov edi, eax
call fcn.00401144
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0x4016a8
push esi
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x401e3b
push 0x100010
push 0x40f1e0
push 0x40f3a0
push dword [0x4131e0]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x4021f4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff7
cmp eax, 8
ja case.default.0x401e4a
jmp dword [eax*4 + 0x4021fb]
mov eax, dword [0x4135d0]
sub eax, dword [0x4135cc]
push 0x4135cc
sar eax, 2
mov dword [0x4131e4], eax
call fcn.00401813
mov dword [0x411c2c], 3
jmp 0x402179
cmp edi, esi
jne 0x401ead
mov eax, dword [0x413580]
sub eax, dword [0x41357c]
push 0x41357c
sar eax, 2
mov dword [0x4131e4], eax
call fcn.00401813
mov dword [0x411c2c], 4
jmp 0x402179
mov eax, dword [0x413500]
sub eax, dword [0x4134fc]
push 0x4134fc
sar eax, 2
mov dword [0x4131e4], eax
call fcn.00401813
mov dword [0x411c2c], 6
jmp 0x402179
cmp edi, esi
jne 0x401f09
mov eax, dword [0x413590]
sub eax, dword [0x41358c]
push 0x41358c
sar eax, 2
mov dword [0x4131e4], eax
call fcn.00401813
mov dword [0x411c2c], 5
jmp 0x402179
mov eax, dword [0x413560]
sub eax, dword [0x41355c]
mov dword [0x411c2c], 7
push 0x41355c
jmp 0x40216c
cmp edi, esi
jne 0x401f3e
mov eax, dword [0x413520]
sub eax, dword [0x41351c]
push 0x41351c
jmp 0x401eed
mov eax, dword [0x4135f0]
sub eax, dword [0x4135ec]
mov dword [0x411c2c], 7
push 0x4135ec
jmp 0x40216c
cmp edi, esi
jne 0x401fb8
mov edi, 0x41360c
cmp ebx, esi
je 0x401f9e
push dword [ebp - 0x10]
mov ecx, edi
push dword [0x4135e0]
push dword [0x4135dc]
push dword [0x41360c]
call fcn.00402eaa
mov eax, dword [0x4135e0]
sub eax, dword [0x4135dc]
sar eax, 2
add eax, 5
mov dword [0x411c2c], eax
jmp 0x401fa8
mov dword [0x411c2c], 5
mov eax, dword [0x413610]
sub eax, dword [0x41360c]
jmp 0x40216b
mov edi, 0x41356c
cmp ebx, esi
je 0x401ff5
push dword [ebp - 0x10]
mov ecx, edi
push dword [0x4135e0]
push dword [0x4135dc]
push dword [0x41356c]
call fcn.00402eaa
mov eax, dword [0x4135e0]
sub eax, dword [0x4135dc]
sar eax, 2
add eax, 7
mov dword [0x411c2c], eax
jmp 0x401fff
mov dword [0x411c2c], 7
mov eax, dword [0x413570]
sub eax, dword [0x41356c]
jmp 0x40216b
cmp edi, esi
jne 0x40206a
mov edi, 0x41361c
cmp ebx, esi
je 0x402050
push dword [ebp - 0x10]
mov ecx, edi
push dword [0x413530]
push dword [0x41352c]
push dword [0x41361c]
call fcn.00402eaa
mov eax, dword [0x413530]
sub eax, dword [0x41352c]
sar eax, 2
add eax, 5
mov dword [0x411c2c], eax
jmp 0x40205a
mov dword [0x411c2c], 5
mov eax, dword [0x413620]
sub eax, dword [0x41361c]
jmp 0x40216b
mov edi, 0x41353c
cmp ebx, esi
je 0x4020a7
push dword [ebp - 0x10]
mov ecx, edi
push dword [0x413530]
push dword [0x41352c]
push dword [0x41353c]
call fcn.00402eaa
mov eax, dword [0x413530]
sub eax, dword [0x41352c]
sar eax, 2
add eax, 7
mov dword [0x411c2c], eax
jmp 0x4020b1
mov dword [0x411c2c], 7
mov eax, dword [0x413540]
sub eax, dword [0x41353c]
jmp 0x40216b
cmp edi, esi
jne 0x402119
mov edi, 0x41359c
cmp ebx, esi
je 0x402102
push dword [ebp - 0x10]
mov ecx, edi
push dword [0x413600]
push dword [0x4135fc]
push dword [0x41359c]
call fcn.00402eaa
mov eax, dword [0x413600]
sub eax, dword [0x4135fc]
sar eax, 2
add eax, 5
mov dword [0x411c2c], eax
jmp 0x40210c
mov dword [0x411c2c], 5
mov eax, dword [0x4135a0]
sub eax, dword [0x41359c]
jmp 0x40216b
mov edi, 0x41350c
cmp ebx, esi
je 0x402156
push dword [ebp - 0x10]
mov ecx, edi
push dword [0x413600]
push dword [0x4135fc]
push dword [0x41350c]
call fcn.00402eaa
mov eax, dword [0x413600]
sub eax, dword [0x4135fc]
sar eax, 2
add eax, 7
mov dword [0x411c2c], eax
jmp 0x402160
mov dword [0x411c2c], 7
mov eax, dword [0x413510]
sub eax, dword [0x41350c]
push edi
sar eax, 2
mov dword [0x4131e4], eax
call fcn.00401813
pop ecx
mov eax, dword [0x413550]
sub eax, dword [0x41354c]
sar eax, 2
cmp eax, dword [0x4131e4]
je 0x4021a4
push 0x100010
push 0x40f1e0
push 0x40f42c
jmp 0x401e2a
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0x194
jne 0x4021d5
push 0x100010
push 0x40f1e0
push 0x40f458
jmp 0x401e2a
cmp dword [ebp - 4], esi
je 0x4021f4
push esi
push 0x401b4c
push dword [0x4131e0]
push 0x67
push dword [0x4130e8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
pop edi
pop esi
pop ebx
leave
ret