Function at 0x404f00
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4379a0
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x43d01c]
xor eax, esp
mov dword [esp + 0x190], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d01c]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1b8]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
mov edi, ecx
mov dword [esp + 0x48], eax
call esi
push 0x439a5c
call esi
mov esi, dword [edi + 0x28]
lea ebp, [edi + 0x18]
mov dword [esp + 0x2c], ebp
cmp dword [ebp + 0xc], esi
jbe 0x404f6d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp]
mov dword [esp + 0x54], eax
cmp ebx, dword [ebp + 0x10]
jbe 0x404f82
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x54]
mov eax, dword [ebp]
push esi
push ecx
push ebx
push eax
lea ebx, [esp + 0x58]
mov esi, ebp
call fcn.00402220
mov ebx, dword [edi + 0x40]
lea esi, [edi + 0x30]
mov dword [esp + 0x54], esi
cmp dword [esi + 0xc], ebx
jbe 0x404fad
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [esi + 0xc]
mov edx, dword [esi]
mov dword [esp + 0x38], edx
cmp ebp, dword [esi + 0x10]
jbe 0x404fc1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push ebx
push ecx
push ebp
push eax
lea edx, [esp + 0x58]
push edx
call fcn.004023c0
mov esi, dword [edi + 0x58]
lea ebp, [edi + 0x48]
mov dword [esp + 0x18], ebp
cmp dword [ebp + 0xc], esi
jbe 0x404fea
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp]
mov dword [esp + 0x38], eax
cmp ebx, dword [ebp + 0x10]
jbe 0x404fff
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp]
push esi
push ecx
push ebx
push eax
lea ebx, [esp + 0x58]
mov esi, ebp
call fcn.00402220
mov esi, dword [edi + 0x70]
add edi, 0x60
mov dword [esp + 0x34], edi
cmp dword [edi + 0xc], esi
jbe 0x40502a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [edi]
mov edi, dword [edi + 0xc]
mov ecx, dword [esp + 0x34]
cmp edi, dword [ecx + 0x10]
jbe 0x405042
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
push esi
push ebx
push edi
push eax
lea edx, [esp + 0x58]
push edx
mov esi, ecx
call fcn.004023c0
mov ax, word [0x439a60]
mov cl, byte [0x439a62]
mov esi, dword [esp + 0x44]
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], cl
lea ecx, [ecx]
mov edi, dword [sym.imp.MSVCR90.dll_sscanf]
lea edx, [esp + 0x50]
push edx
push 0x439a64
push esi
mov dword [esp + 0x5c], 0
call edi
add esp, 0xc
cmp eax, 1
jne 0x4051d8
mov ebx, dword [sym.imp.MSVCR90.dll_strstr]
push 0x439a68
push esi
call ebx
add esp, 8
test eax, eax
je 0x4051d8
lea esi, [eax + 1]
mov eax, dword [esp + 0x50]
dec eax
cmp eax, 3
ja case.default.0x4050c1
jmp dword [eax*4 + 0x405408]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x3c]
push eax
push 0x439a6c
push esi
mov dword [esp + 0x48], 0xdc
mov dword [esp + 0x3c], 0xb5
mov dword [esp + 0x40], 0x6f
mov dword [esp + 0x38], 0xbc
call edi
add esp, 0x18
cmp eax, 4
jne case.default.0x4050c1
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x10]
shl edi, 8
or edi, dword [esp + 0x28]
mov dword [esp + 0x40], eax
shl edi, 8
or edi, dword [esp + 0x24]
shl edi, 8
or edi, dword [esp + 0x30]
mov dword [esp + 0x38], edi
cmp dword [ebx + 0xc], eax
jbe 0x405143
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebp, dword [ebx + 0x10]
mov ecx, dword [ebx]
mov dword [esp + 0x64], ecx
cmp dword [ebx + 0xc], ebp
jbe 0x405157
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx + 0xc]
mov edx, dword [esp + 0x2c]
cmp ebx, dword [edx + 0x10]
jbe 0x405169
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x60], ebx
cmp ebx, ebp
je 0x405182
cmp dword [ebx], edi
je 0x405182
add ebx, 4
cmp ebx, ebp
jne 0x405177
test eax, eax
je 0x40518c
cmp eax, dword [esp + 0x64]
je 0x405192
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x40]
jne 0x4051a5
mov edi, dword [esp + 0x2c]
lea ebx, [esp + 0x38]
call fcn.00401e90
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
je 0x4051d8
mov ecx, dword [esp + 0x1bc]
mov edx, dword [esp + 0x44]
lea esi, [eax + 2]
add edx, ecx
cmp esi, edx
jae 0x4051d8
test esi, esi
jne 0x405070
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004035d2
add esp, 0x1a0
ret 8
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
push str._d._d._d._d
push esi
mov dword [esp + 0x38], 0xdc
mov dword [esp + 0x40], 0xb5
mov dword [esp + 0x3c], 0x6f
mov dword [esp + 0x48], 0xbc
call edi
add esp, 0x18
cmp eax, 4
jne case.default.0x4050c1
mov edi, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
shl edi, 8
or edi, dword [esp + 0x24]
mov dword [esp + 0x38], eax
shl edi, 8
or edi, dword [esp + 0x28]
shl edi, 8
or edi, dword [esp + 0x20]
mov dword [esp + 0x40], edi
cmp dword [ebp + 0xc], eax
jbe 0x405279
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [ebp]
mov ebp, dword [ebp + 0x10]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x48], edx
cmp dword [ebx + 0xc], ebp
jbe 0x405292
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [ebx + 0xc]
mov eax, dword [esp + 0x18]
cmp ebx, dword [eax + 0x10]
jbe 0x4052a4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov dword [esp + 0x60], ebx
cmp ebx, ebp
je 0x4052bd
cmp dword [ebx], edi
je 0x4052bd
add ebx, 4
cmp ebx, ebp
jne 0x4052b2
test eax, eax
je 0x4052c7
cmp eax, dword [esp + 0x48]
je 0x4052cd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, dword [esp + 0x38]
jne 0x4051a5
mov edi, dword [esp + 0x18]
lea ebx, [esp + 0x40]
call fcn.00401e90
mov ebp, edi
jmp case.default.0x4050c1
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je case.default.0x4050c1
push 0x7f
lea eax, [esp + 0xa9]
push 0
push eax
mov byte [esp + 0xb0], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
sub edi, esi
push edi
lea ecx, [esp + 0xa8]
push esi
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea edx, [esp + 0xa4]
push edx
lea ecx, [esp + 0x8c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x88]
mov dword [esp + 0x1b0], 0
mov ebx, dword [esp + 0x54]
push eax
call fcn.00401f80
lea ecx, [esp + 0x88]
mov dword [esp + 0x1b0], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp case.default.0x4050c1
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
mov edi, eax
add esp, 8
test edi, edi
je case.default.0x4050c1
push 0x7f
lea edx, [esp + 0x129]
push 0
push edx
mov byte [esp + 0x130], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
sub edi, esi
push edi
lea eax, [esp + 0x128]
push esi
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ebx, dword [esp + 0x34]
lea edx, [esp + 0x6c]
push edx
mov dword [esp + 0x1b4], 1
call fcn.00401f80
lea ecx, [esp + 0x6c]
mov dword [esp + 0x1b0], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp case.default.0x4050c1