Function at 0x411be1
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 0x41235d
cmp dword [ebp + 0xc], 0
je 0x41235d
mov ecx, dword [ebp - 0x2c]
movsx edx, byte [ecx]
cmp edx, 0x25
je 0x411c50
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 0x412358
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 0x411ca3
mov dword [ebp - 0x34], 0x42ee0c
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.0040f0d8
add esp, 4
test eax, eax
je 0x411ca1
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 0x411caa
mov dword [ebp - 0x34], 0x42ee14
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.0x411cd1.22
mov ecx, dword [ebp - 0x3c]
xor eax, eax
mov al, byte [ecx + 0x4123cc]
jmp dword [eax*4 + 0x412370]
jmp 0x411bfa
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 0x411d07
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.0x411cd1.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 0x411d55
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.0x411cd1.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 0x411da0
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.0x411cd1.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 0x411dea
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.0x411cd1.22
mov dword [ebp - 0x30], 3
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0xc]
jbe 0x411e22
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 + 0x42eba8]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp case.0x411cd1.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 0x411e6f
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.0x411cd1.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 0x411eb6
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.0x411cd1.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 0x411efc
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.0x411cd1.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 0x411f3f
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.0x411cd1.22
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xc
jge 0x411f74
mov ecx, dword [ebp + 0x18]
mov dword [ecx + 0x28], 0
jmp 0x411f87
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 0x411f94
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 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.0x411cd1.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 0x411ffd
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.0x411cd1.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 0x412040
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.0x411cd1.22
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 4], 3
jg 0x41206f
cmp dword [ebp - 4], 1
jge 0x412078
mov dword [ebp - 4], 3
jmp 0x4120a2
cmp dword [ebp - 4], 2
jne 0x41208e
mov eax, dword [ebp - 0x28]
cdq
mov ecx, 0xa
idiv ecx
mov dword [ebp - 0x28], eax
jmp 0x4120a2
cmp dword [ebp - 4], 1
jne 0x4120a2
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 0x4120cd
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.0x411cd1.22
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x28]
mov eax, dword [ebp + 0x14]
cmp dword [eax + edx*4 + 0xb0], 0
je 0x412146
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 0x412124
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.0x411cd1.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.00412446
add esp, 0xc
push eax
push 0x42ee28
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 0x41219a
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.0x411cd1.22
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0x14]
push ecx
push 0x42ee30
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 0x4121de
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.0x411cd1.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 0x412233
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.0x411cd1.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 0x412277
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.0x411cd1.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 0x4122c3
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.0x411cd1.22
mov dword [ebp - 0x30], 1
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebp + 0xc]
jbe 0x4122f1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
jmp 0x4122f7
mov ecx, dword [ebp - 8]
mov byte [ecx], 0x25
jmp case.0x411cd1.22
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.00412ee8
add esp, 8
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x42ee54
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.0x411cd1.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 0x411bfa
cmp dword [ebp + 0xc], 0
je 0x412369
mov ecx, dword [ebp - 8]
mov byte [ecx], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret