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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x2c]
movsx eax, byte [edx]
test eax, eax
je 0x41217d
cmp dword [ebp + 0xc], 0
je 0x41217d
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
cmp edx, 0x25
je 0x411a70
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x2c]
mov dl, byte [ecx]
mov byte [eax], dl
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x412178
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx + 1]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x30
jne 0x411ac3
mov dword [ebp - 0x34], 0x42ed64
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx + 1]
push edx
call fcn.0040ef01
add esp, 4
test eax, eax
je 0x411ac1
mov eax, dword [ebp - 0x2c]
movsx ecx, byte [eax + 1]
sub ecx, 0x30
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
jmp 0x411aca
mov dword [ebp - 0x34], 0x42ed6c
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0x79
ja case.0x411af1.22
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [ecx + 0x4121ec]
jmp dword [eax*4 + 0x412190]
jmp 0x411a1a
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4 + 0x94]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x411b27
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx*4 + 0x94]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4 + 0x78]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x411b75
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx*4 + 0x78]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4 + 0x3c]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x411bc0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx*4 + 0x3c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x411c0a
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov dword [ebp - 0x30], 3
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0xc]
jbe 0x411c42
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 8]
mov ecx, dword [eax*4 + 0x42eb00]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jbe 0x411c8f
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x10]
add ecx, 1
push ecx
push str._03d
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x411cd6
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x411d1c
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x411d5f
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xc
jge 0x411d94
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x28], 0
jmp 0x411da7
mov edx, dword [ebp + 0x18]
mov dword [edx + 0x28], 1
mov eax, dword [ebp - 0x28]
sub eax, 0xc
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x411db4
mov dword [ebp - 0x28], 0xc
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jbe 0x411dda
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x1c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jbe 0x411e1d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x20]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jbe 0x411e60
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 4], 3
jg 0x411e8f
cmp dword [ebp - 4], 1
jge 0x411e98
mov dword [ebp - 4], 3
jmp 0x411ec2
cmp dword [ebp - 4], 2
jne 0x411eae
mov eax, dword [ebp - 0x28]
cdq
mov ecx, 0xa
idiv ecx
mov dword [ebp - 0x28], eax
jmp 0x411ec2
cmp dword [ebp - 4], 1
jne 0x411ec2
mov eax, dword [ebp - 0x28]
cdq
mov ecx, 0x64
idiv ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
push eax
push str._0d
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0xc]
jbe 0x411eed
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp + 0x14]
cmp dword [eax + edx*4 + 0xb0], 0
je 0x411f66
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + edx*4 + 0xb0]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0xc]
jbe 0x411f44
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x28]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + eax*4 + 0xb0]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
xor eax, eax
cmp edx, 0x55
sete al
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.00412266
add esp, 0xc
push eax
push 0x42ed80
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jbe 0x411fba
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x14]
push ecx
push 0x42ed88
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x411ffe
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 8]
add ecx, 1
push ecx
push str._02d__02d__04d
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x412053
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 4]
push eax
push str._04d
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0xc]
jbe 0x412097
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 4]
cdq
mov ecx, 0x64
idiv ecx
push edx
push str._02d
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0xc]
jbe 0x4120e3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411af1.22
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0xc]
jbe 0x412111
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
jmp 0x412117
mov ecx, dword [ebp - 8]
mov byte [ecx], 0x25
jmp case.0x411af1.22
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00412d08
add esp, 8
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x42edac
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp + 0xc]
jbe case.0x411af1.22
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x30]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0x30]
mov dword [ebp + 0xc], eax
jmp 0x411a1a
cmp dword [ebp + 0xc], 0
je 0x412189
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret