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

Disassembly:
mov eax, 0x4a0a6a
call fcn.00497a30
sub esp, 0x81c
mov eax, dword [ebp + 0xc]
push ebx
movzx ecx, ah
push esi
mov esi, dword [ebp + 0x10]
and eax, 0xff
cmp ecx, 1
push edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
jne 0x41fd1d
mov edi, dword [ebp + 8]
lea eax, [edi + 0x3c]
lea edx, [ebp - 0x18]
mov dword [ebp + 0xc], eax
call fcn.00422cc8
mov ebx, eax
cmp ebx, dword [edi + 0x40]
mov dword [ebp - 0x10], ebx
je 0x41fd1d
cmp dword [ebx + 0xc], esi
jne 0x41fd1d
cmp dword [ebp - 0x14], 0
je 0x41f919
lea eax, [ebx + 0x5c]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
mov esi, str.0.0.0.0
and ecx, eax
push esi
push ecx
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
pop ecx
pop ecx
test al, al
push 0x15e
lea eax, [ebp - 0x568]
push eax
je 0x41f642
push 0x801
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_LoadStringA]
push dword [ebx + 0x14]
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
jmp 0x41f679
push 0x813
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp dword [ebx + 0x78], 0x10
jb 0x41f65b
mov eax, dword [ebx + 0x64]
jmp 0x41f65e
lea eax, [ebx + 0x64]
push dword [ebx + 0x14]
push eax
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0x10
mov ecx, dword [ebx + 0x1c]
push 1
lea eax, [ebp - 0x408]
push eax
push 2
call fcn.0041b091
add esp, 0xc
push 2
lea eax, [ebp - 0x408]
push eax
push 0x12
or ecx, 0xffffffff
call fcn.0041b091
add esp, 0xc
jmp 0x41f6bb
cmp ebx, dword [edi + 0x40]
je 0x41fd1d
lea edx, [ebp - 0x10]
call fcn.00423ea2
mov ebx, dword [ebp - 0x10]
cmp byte [ebx + 0x19], 0
je 0x41f6a7
cmp ebx, dword [edi + 0x40]
je 0x41fd1d
lea eax, [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
cmp eax, dword [ebp + 0x10]
jne 0x41fd1d
and dword [ebp + 0x10], 0
mov dword [ebp - 0x10], eax
lea eax, [ebx + 0x5c]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
push esi
push ecx
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
test al, al
pop ecx
pop ecx
je 0x41f70f
cmp dword [ebx + 0x78], 0x10
jb 0x41f709
mov eax, dword [ebx + 0x64]
jmp 0x41f70c
lea eax, [ebx + 0x64]
mov dword [ebp + 0x10], eax
lea esi, [ebx + 0x10]
mov ecx, dword [esi]
test ecx, ecx
je 0x41f71e
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebx + 0x1c]
push 0
push dword [ebx + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0041e0e2
test eax, eax
je 0x41f805
push dword [ebx + 0x1c]
push 1
push dword [ebx + 0x14]
push dword [ebp + 0x10]
push edi
call fcn.0041e0e2
test eax, eax
je 0x41f805
push 0x15e
lea eax, [ebp - 0x568]
push eax
push 0x812
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_LoadStringA]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
call fcn.00422cc8
push dword [ebp - 0x14]
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
xor edi, edi
call fcn.004222c9
mov esi, dword [ebp + 8]
lea edx, [ebp + 8]
call fcn.00423ea2
cmp dword [esi + 0x78], 0x10
jb 0x41f79b
mov eax, dword [esi + 0x64]
jmp 0x41f79e
lea eax, [esi + 0x64]
push dword [esi + 0x14]
push eax
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
mov ecx, dword [esi + 0x1c]
push 1
lea eax, [ebp - 0x408]
push eax
push 2
call fcn.0041b091
add esp, 0x1c
push 2
lea eax, [ebp - 0x408]
push eax
push 0x12
or ecx, 0xffffffff
call fcn.0041b091
add esp, 0xc
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00421fa5
add esi, 0xc
push esi
push dword [ebp + 0xc]
inc edi
call fcn.004222c9
cmp edi, eax
jbe 0x41f785
jmp 0x41fd1d
lea eax, [ebp - 0x198]
push eax
mov edi, esi
call fcn.0041fd2e
and dword [ebp - 4], 0
push ebx
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.00421fa5
mov eax, dword [ebp - 0x198]
test eax, eax
je 0x41f904
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x2a0]
push eax
lea edi, [ebp - 0x198]
call fcn.0041fd2e
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp + 0x10]
call fcn.00421f89
lea eax, [ebp - 0x2a0]
push eax
mov byte [ebp - 4], 0
call fcn.0041f4a4
mov eax, dword [ebp - 0x198]
mov dword [ebp + 0x10], eax
jmp 0x41f8eb
mov eax, dword [ebp - 0x10]
cmp dword [ebx + 0xc], eax
jne 0x41f904
lea edi, [ebx + 0x10]
lea esi, [ebp - 0x198]
call fcn.0041fe4f
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.00421fa5
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x198], eax
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2a4], eax
lea eax, [ebp - 0x2a0]
push eax
lea edi, [ebp - 0x198]
call fcn.0041fd2e
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x14]
call fcn.00421f89
lea eax, [ebp - 0x2a0]
push eax
mov byte [ebp - 4], 0
call fcn.0041f4a4
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.00422cc8
mov ebx, eax
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x40]
jne 0x41f87e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x198]
push eax
call fcn.0041f4a4
jmp 0x41fd1d
push 0x16c
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0x10], eax
test eax, eax
mov dword [ebp - 4], 3
je 0x41f950
push dword [ebx + 0x1c]
mov ecx, eax
push 7
push 0x400
push dword [edi + 0x24]
push dword [edi + 0x28]
call fcn.0048a44d
mov esi, eax
mov dword [ebp + 0x10], esi
jmp 0x41f957
and dword [ebp + 0x10], 0
mov esi, dword [ebp + 0x10]
or dword [ebp - 4], 0xffffffff
push dword [ebx + 0x10]
mov ecx, esi
call fcn.004886d9
test eax, eax
je 0x41f97a
test esi, esi
je 0x41fd1d
mov eax, dword [esi]
mov ecx, esi
jmp 0x41fa23
cmp byte [ebx + 0x18], 0
je 0x41faf3
and dword [ebp - 0x78], 0
or esi, 0xffffffff
sub esi, dword [ebx + 0x1c]
lea ecx, [ebp - 0x90]
lea eax, [edi + 0x48]
push ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x18], eax
call fcn.004235f3
mov ecx, dword [ebp + 0x10]
mov ebx, eax
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], ebx
call fcn.00486943
push eax
lea eax, [ebp - 0x70]
push eax
call sub.MSVCR71.dll_strcpy
and dword [ebp - 0x10], 0
cmp ebx, dword [edi + 0x4c]
pop ecx
pop ecx
jne 0x41fa2f
push 0x15e
lea eax, [ebp - 0x6c8]
push eax
mov eax, dword [ebp + 8]
push 0x822
push dword [eax + 0x28]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c8]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.MSVCR71.dll_sprintf]
add esp, 0xc
push 1
lea eax, [ebp - 0x828]
push eax
push 0x12
or ecx, 0xffffffff
call fcn.0041b091
add esp, 0xc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fd1d
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x41fd1d
mov ebx, dword [ebp + 0xc]
cmp dword [ebx + 0x20], esi
jne 0x41fa5d
lea eax, [ebp - 0x70]
push eax
lea eax, [ebx + 0x10]
push eax
call sub.MSVCR71.dll_strcmp
test eax, eax
pop ecx
pop ecx
je 0x41fa93
inc dword [ebp - 0x10]
lea edx, [ebp + 0xc]
call fcn.00423f1a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x4c]
jne 0x41fa2c
cmp dword [ebp - 0x10], 1
jne 0x41f9c8
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
add edi, 0xc
add esi, 0x30
lea ebx, [ebp + 0xc]
call fcn.004116e4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x34]
je 0x41fad2
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
call fcn.004100ef
jmp 0x41fadf
mov esi, dword [ebp + 8]
lea edi, [ebx + 0xc]
add esi, 0x30
lea ebx, [ebp - 0x14]
call fcn.004116e4
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x18]
call fcn.0042278b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x34]
je 0x41fa16
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x10]
call fcn.004100ef
jmp 0x41fd1d
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fadf
mov eax, dword [ecx]
push 1
call dword [eax]
push dword [ebp - 0x14]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
call fcn.0042278b
jmp 0x41fd1d
push 0
mov ecx, esi
call fcn.00488ae0
push eax
lea ecx, [ebp - 0x60]
call fcn.00483141
mov dword [ebp - 4], 4
cmp dword [ebp - 0x48], 0
je 0x41fb8d
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x40]
mov byte [ebp + 0x13], 0
mov dword [ebp + 0xc], eax
cmp byte [ebp + 0x13], 0
jne 0x41fb77
lea ecx, [ebp - 0x5c]
push ecx
lea eax, [ebx + 0x5c]
mov ecx, eax
add eax, 4
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
test al, al
pop ecx
pop ecx
je 0x41fb4d
mov byte [ebp + 0x13], 1
jmp 0x41fb61
cmp byte [ebx + 0x19], 0
je 0x41fb56
mov dword [ebp + 0xc], ebx
lea edx, [ebp - 0x10]
call fcn.00423ea2
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
cmp dword [ebx + 0xc], eax
je 0x41fb22
cmp byte [ebp + 0x13], 0
jne 0x41fb77
mov ebx, dword [ebp + 0xc]
cmp ebx, dword [edi + 0x40]
je 0x41fb8d
lea eax, [ebx + 0x10]
push eax
mov ecx, esi
call fcn.00486943
push eax
push edi
call fcn.004204a2
test al, al
je 0x41fba2
test esi, esi
je 0x41fd11
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x41fd11
lea eax, [ebx + 0x80]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00483187
mov byte [ebp - 4], 5
cmp byte [edi + 0xbc], 0
je 0x41fbe9
cmp byte [ebx + 0x20], 0
je 0x41fbe9
cmp dword [ebx + 0x3c], 0
je 0x41fbe9
mov ecx, esi
call fcn.00486943
push eax
call fcn.0048472b
test al, al
pop ecx
jne 0x41fbe9
lea eax, [ebx + 0x24]
push eax
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
call dword [eax + 0xc]
cmp byte [ebx + 0x54], 0
je 0x41fc41
cmp dword [ebp - 0x24], 0
jne 0x41fc41
cmp byte [ebx + 0x55], 0
je 0x41fc41
push dword [ebx + 0x1c]
mov ecx, dword [0x4bb2b0]
lea eax, [ebp - 0x3c]
call fcn.00469ecd
test al, al
je 0x41fc41
cmp dword [ebp - 0x24], 0
je 0x41fc31
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x41fc22
lea eax, [ebp - 0x34]
movsx eax, byte [eax]
push eax
call dword [sym.imp.MSVCR71.dll_isdigit]
test eax, eax
pop ecx
jne 0x41fc41
lea eax, [ebx + 0x80]
push eax
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
call dword [eax + 0xc]
push 0x8f40
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp + 0x10], eax
test eax, eax
mov byte [ebp - 4], 6
je 0x41fce9
xor ecx, ecx
mov cl, byte [ebx + 0x21]
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x20]
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x5b]
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x5a]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebx + 0xec]
push ecx
push dword [ebx + 0x114]
xor ecx, ecx
push dword [ebx + 0x110]
mov cl, byte [ebx + 0x59]
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x58]
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x57]
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x56]
cmp byte [ebx + 0x53], 0
push ecx
sete cl
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x52]
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x54]
push ecx
xor ecx, ecx
mov cl, byte [ebx + 0x51]
push ecx
push dword [ebx + 0x4c]
lea ecx, [ebp - 0x3c]
push dword [ebx + 0x48]
push ecx
lea ecx, [ebx + 0xc8]
push ecx
lea ecx, [ebx + 0xa4]
push ecx
push dword [ebx + 0x1c]
xor ecx, ecx
mov cl, byte [ebx + 0x50]
push ecx
push edi
push esi
push eax
call fcn.0040b3e6
mov ebx, eax
jmp 0x41fceb
xor ebx, ebx
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x20]
mov edi, dword [ebp + 8]
add edi, 0x30
lea esi, [ebp + 0x10]
mov dword [ebp + 0x10], eax
call fcn.00411661
lea ecx, [ebp - 0x3c]
mov dword [eax], ebx
mov byte [ebp - 4], 4
call fcn.004833a3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004833a3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc