Function at 0x100059e0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x38
mov ecx, 7
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
xor ebx, ebx
test eax, eax
je 0x10005a13
mov esi, dword [esp + 0x4c]
push esi
call dword [0x100da234]
add esp, 4
test eax, eax
jbe 0x10005a13
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10005a23
mov eax, dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x10005a33
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x84]
test eax, eax
je 0x10005a50
mov eax, dword [esp + 0x7c]
cmp eax, 1
mov dword [esp + 0x18], eax
jl 0x10005a50
cmp eax, 4
jle 0x10005a58
mov dword [esp + 0x18], 1
cmp dword [esp + 0x48], 6
jl 0x10005a71
mov eax, dword [esp + 0x90]
test eax, eax
je 0x10005a71
mov ebx, dword [esp + 0x88]
lea edx, [esp + 0xc]
push edx
push 0x10005770
push ebx
push 0x100d9e50
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov esi, eax
test esi, esi
je 0x10005b4e
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
lea eax, [esp + 0x30]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x10005b4e
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
cmp ecx, eax
jne 0x10005b2a
cmp dword [esp + 0x30], 0x102
jne 0x10005b2a
mov eax, dword [esp + 0x34]
cmp eax, 0xd
jne 0x10005b03
push 0
push 1
push 0x111
push esi
call edi
jmp 0x10005b2a
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
je 0x10005b11
cmp ecx, 3
jne 0x10005b2a
cmp eax, 0x2d
je 0x10005b2a
cmp eax, 0x30
jb 0x10005b20
cmp eax, 0x39
jbe 0x10005b2a
cmp ecx, 3
jne 0x10005b38
cmp eax, 0x2e
jne 0x10005b38
lea edx, [esp + 0x2c]
push edx
call ebx
lea eax, [esp + 0x2c]
push eax
call ebp
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x10005ad6
pop ebp
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebx, eax
je 0x10005c6c
mov eax, dword [esp + 0x24]
xor edi, edi
test eax, eax
je 0x10005b74
push eax
call dword [0x100da234]
add esp, 4
mov edi, eax
jmp 0x10005b7c
mov dword [esp + 0x24], 0x100d9f40
mov eax, dword [esp + 0x78]
cmp eax, 0x80000301
ja 0x10005c02
je 0x10005bed
cmp eax, 0x80000004
je 0x10005bcf
cmp eax, 0x80000101
je 0x10005bb7
cmp eax, 0x80000201
jne 0x10005c17
mov edx, dword [esp + 0x24]
push edx
call sub.MSVCRT.dll_atoi
mov ecx, dword [esp + 0x74]
add esp, 4
mov word [ecx], ax
jmp 0x10005c5b
mov edx, dword [esp + 0x24]
push edx
call sub.MSVCRT.dll_atoi
mov ecx, dword [esp + 0x74]
add esp, 4
mov byte [ecx], al
jmp 0x10005c5b
mov esi, dword [esp + 0x70]
mov edx, dword [esi]
push edx
call fcn.10004ac0
mov eax, dword [esp + 0x28]
push edi
push eax
call fcn.10006c00
add esp, 0xc
mov dword [esi], eax
jmp 0x10005c5b
mov ecx, dword [esp + 0x24]
push ecx
call sub.MSVCRT.dll_atoi
mov edx, dword [esp + 0x74]
add esp, 4
mov dword [edx], eax
jmp 0x10005c5b
cmp eax, 0x80000401
je 0x10005c45
cmp eax, 0x80000501
je 0x10005c30
cmp eax, 0x80000601
je 0x10005c1b
xor ebx, ebx
jmp 0x10005c5b
mov eax, dword [esp + 0x24]
push eax
call sub.MSVCRT.dll_atof
mov ecx, dword [esp + 0x74]
add esp, 4
fstp qword [ecx]
jmp 0x10005c5b
mov edx, dword [esp + 0x24]
push edx
call sub.MSVCRT.dll_atof
mov eax, dword [esp + 0x74]
add esp, 4
fstp dword [eax]
jmp 0x10005c5b
mov ecx, dword [esp + 0x24]
push ecx
call sub.MSVCRT.dll__atoi64
mov ecx, dword [esp + 0x74]
add esp, 4
mov dword [ecx], eax
mov dword [ecx + 4], edx
test edi, edi
jle 0x10005c6c
mov edx, dword [esp + 0x24]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x38
ret