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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x487680]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x4c], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x18], 0xffffffff
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xc], 2
mov ecx, dword [ebp + 0x10]
fldz
fstp qword [ecx + 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x74], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x3c], 1
mov edx, dword [ebp + 0x10]
fldz
fstp qword [edx + 0x40]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x58], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x30], 3
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x5c], 0xffffffff
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x60], 1
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x64], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x68], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 4], 0
push 0xa
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x6c], eax
push 0x466920
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x6c]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x70], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x78], 0x7b
mov ecx, dword [ebp + 0x10]
fldz
fstp qword [ecx + 0x28]
mov edx, dword [ebp + 0x10]
fldz
fstp qword [edx + 0x20]
mov dword [0x4674d8], 0
push 0x466928
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040cb70
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x405716
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
sub eax, 0x3a
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0x40
ja case.0x4051e0.1
mov ecx, dword [ebp - 0x4c]
movzx edx, byte [ecx + 0x4057c0]
jmp dword [edx*4 + 0x405764]
lea eax, [ebp - 0x10]
push eax
push 0x466950
mov ecx, dword [0x2105974]
push ecx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x405224
fldz
fcomp qword [ebp - 0x10]
fnstsw ax
test ah, 0x44
jnp 0x405224
mov edx, dword [ebp + 0x10]
fld qword [ebp - 0x10]
fstp qword [edx + 0x28]
mov eax, dword [ebp + 0x10]
fld qword [ebp - 0x10]
fstp qword [eax + 0x20]
jmp 0x405232
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405810
add esp, 8
jmp case.0x4051e0.1
lea edx, [ebp - 0x10]
push edx
push 0x466954
mov eax, dword [0x2105974]
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x40525e
mov ecx, dword [ebp + 0x10]
fld qword [ebp - 0x10]
fstp qword [ecx + 0x10]
jmp 0x40526c
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.00405810
add esp, 8
jmp case.0x4051e0.1
lea eax, [ebp - 4]
push eax
push 0x466958
mov ecx, dword [0x2105974]
push ecx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x4052a5
xor edx, edx
cmp dword [ebp - 4], 0
setl dl
sub edx, 1
and edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x68], edx
jmp 0x405304
push 9
push 0x46695c
mov ecx, dword [0x2105974]
push ecx
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x4052f6
lea edx, [ebp - 4]
push edx
push 0x466968
mov eax, dword [0x2105974]
add eax, 9
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x4052f6
xor ecx, ecx
cmp dword [ebp - 4], 0
setl cl
sub ecx, 1
and ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x74], ecx
jmp 0x405304
push 1
mov eax, dword [ebp - 8]
push eax
call fcn.00405810
add esp, 8
jmp case.0x4051e0.1
lea ecx, [ebp - 0x18]
push ecx
push 0x46696c
mov edx, dword [0x2105974]
push edx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x40532f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x18], ecx
jmp case.0x4051e0.1
lea edx, [ebp - 0x18]
push edx
push 0x466970
mov eax, dword [0x2105974]
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x40535f
cmp dword [ebp - 0x18], 0
jle 0x40535f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x58], edx
jmp case.0x4051e0.1
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x1c], 1
lea ecx, [ebp - 0x18]
push ecx
push 0x466974
mov edx, dword [0x2105974]
push edx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x4053a9
cmp dword [ebp - 0x18], 3
jle 0x40539a
mov dword [ebp - 0x50], 3
jmp 0x4053a0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x50]
mov dword [ecx + 0x1c], edx
jmp case.0x4051e0.1
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x70], 1
jmp case.0x4051e0.1
mov byte [0x431a44], 1
jmp case.0x4051e0.1
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x34], 1
jmp case.0x4051e0.1
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x38], 1
jmp case.0x4051e0.1
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
push 0x466978
mov edx, dword [0x2105974]
push edx
call fcn.00405860
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
jmp case.0x4051e0.1
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x60], 0
jmp case.0x4051e0.1
lea eax, [ebp - 0x18]
push eax
push 0x46697c
mov ecx, dword [0x2105974]
push ecx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x405443
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x5c], eax
jmp 0x405451
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405810
add esp, 8
jmp case.0x4051e0.1
lea edx, [ebp - 0x14]
push edx
push 0x466980
mov eax, dword [0x2105974]
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x40549b
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR90.dll_strlen
add esp, 4
cmp eax, 2
jne 0x40549b
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x4c], eax
jmp 0x405524
lea edx, [ebp - 0x18]
push edx
push 0x466990
mov eax, dword [0x2105974]
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x4054ce
cmp dword [ebp - 0x18], 0
jl 0x4054ce
cmp dword [ebp - 0x18], 0xa
jg 0x4054ce
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x3c], edx
jmp 0x405524
mov eax, dword [0x2105974]
push eax
call fcn.00427af0
add esp, 4
test eax, eax
je 0x4054f7
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x3c], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [0x2105974]
mov dword [edx + 0x48], eax
jmp 0x405524
mov ecx, dword [0x2105974]
push ecx
push 0x466994
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.00405810
add esp, 8
jmp case.0x4051e0.1
lea eax, [ebp - 4]
push eax
push 0x4669d0
mov ecx, dword [0x2105974]
push ecx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jg 0x405556
push 1
mov edx, dword [ebp - 8]
push edx
call fcn.00405810
add esp, 8
jmp 0x40555f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x78], ecx
jmp case.0x4051e0.1
lea edx, [ebp - 4]
push edx
push 0x4669d4
mov eax, dword [0x2105974]
push eax
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x405586
cmp dword [ebp - 4], 0
jge 0x405596
push 1
mov ecx, dword [ebp - 8]
push ecx
call fcn.00405810
add esp, 8
jmp 0x40559f
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx + 0x64], eax
jmp case.0x4051e0.1
push 4
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [0x2105974]
push edx
call sub.gvc.dll_colorxlate
add esp, 0xc
test eax, eax
jne 0x4055fa
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x54], 0
jne 0x4055d7
push 0x18
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x54], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x54]
fld qword [ebp - 0x48]
fstp qword [eax]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x54]
fld qword [ebp - 0x40]
fstp qword [edx + 8]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x54]
fld qword [ebp - 0x38]
fstp qword [ecx + 0x10]
jmp case.0x4051e0.1
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov ecx, dword [0x2105974]
push ecx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx + 0x6c], eax
jmp case.0x4051e0.1
lea eax, [ebp - 0x10]
push eax
push 0x4669d8
mov ecx, dword [0x2105974]
push ecx
call dword [sym.imp.MSVCR90.dll_sscanf]
add esp, 0xc
test eax, eax
jle 0x405652
mov edx, dword [ebp + 0x10]
fld qword [ebp - 0x10]
fstp qword [edx + 0x40]
jmp 0x405674
mov eax, dword [0x2105974]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0x4669dc
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
jmp case.0x4051e0.1
mov edx, dword [ebp + 0x10]
cmp dword [edx + 0x50], 0
je 0x405692
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x50]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [0x2105974]
push edx
call dword [sym.imp.MSVCR90.dll__strdup]
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x50], eax
jmp case.0x4051e0.1
mov edx, dword [0x2105970]
push edx
push 0x466a08
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
jmp case.0x4051e0.1
cmp dword [0x2105970], 0x3f
jne 0x4056e4
push 0
mov eax, dword [ebp - 8]
push eax
call fcn.00405810
add esp, 8
jmp case.0x4051e0.1
mov ecx, dword [0x2105970]
push ecx
push 0x466a38
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00405810
add esp, 8
jmp 0x40519b
mov eax, dword [0x4674dc]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 8]
sub eax, dword [0x4674dc]
mov dword [ebp + 8], eax
je 0x40573b
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 0x10]
cmp dword [eax + 8], 0
jne 0x405753
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00431bb8
mov esp, ebp
pop ebp
ret