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

Disassembly:
push 0xffffffffffffffff
push 0x4a3876
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [esp + 0xd8], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], edi
mov byte [esp + 0x10], 0
mov dword [esp + 0x64], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x9c]
push eax
call fcn.0040f9a0
mov eax, 0x7fff
mov word [esp + 0x24], ax
mov word [esp + 0x26], ax
mov eax, 0xffff8001
mov word [esp + 0x28], ax
mov word [esp + 0x2a], ax
mov ecx, dword [esp + 0xe0]
xor ebp, ebp
mov byte [esp + 0xd8], 2
mov dword [esp + 0x20], ebp
lea edx, [ecx + 0x20]
mov dword [esp + 0x2c], edx
mov eax, dword [edx]
mov dword [esp + 0x30], eax
mov eax, dword [edx]
cmp eax, ebx
je 0x406005
mov eax, dword [eax]
jmp 0x406007
xor eax, eax
mov ecx, eax
cmp ecx, ebx
mov dword [esp + 0x34], ecx
je 0x406015
mov eax, dword [ecx]
jmp 0x406017
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], ebx
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 0
je 0x406033
mov dword [esp + 0x40], ecx
jmp 0x406038
mov byte [esp + 0x3d], 1
mov byte [esp + 0x44], 0
cmp dword [edx], ebx
je 0x40660a
cmp ecx, dword [esp + 0x40]
jne 0x406057
mov al, byte [esp + 0x44]
test al, al
jne 0x40660a
mov al, byte [ecx + 6]
lea edx, [esp + 0xc0]
shr al, 6
mov esi, ecx
and al, 1
push edx
mov dword [esp + 0x18], esi
mov byte [esp + 0x14], al
call fcn.0043d1f0
mov cx, word [eax + 4]
cmp word [esp + 0xe4], cx
jg 0x4065f4
mov cx, word [eax]
cmp word [esp + 0xe8], cx
jl 0x4065f4
mov cx, word [eax + 6]
cmp word [esp + 0xe6], cx
jg 0x4065f4
mov ax, word [eax + 2]
cmp word [esp + 0xea], ax
jl 0x4065f4
lea edx, [esi + 0x10]
mov dword [esp + 0x64], edx
mov eax, dword [edx]
mov dword [esp + 0x68], eax
mov eax, dword [edx]
cmp eax, ebx
je 0x4060d4
mov eax, dword [eax]
jmp 0x4060d6
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x6c], eax
je 0x4060e2
mov ecx, dword [eax]
jmp 0x4060e4
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x78], ebx
mov byte [esp + 0x74], 0
mov byte [esp + 0x75], 0
je 0x406100
mov dword [esp + 0x78], eax
jmp 0x406105
mov byte [esp + 0x75], 1
mov byte [esp + 0x7c], 0
cmp dword [edx], ebx
je 0x4065d1
cmp eax, dword [esp + 0x78]
jne 0x406124
mov cl, byte [esp + 0x7c]
test cl, cl
jne 0x4065d1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc8]
push ecx
push eax
push edx
mov esi, eax
call fcn.0042de20
mov cx, word [eax + 4]
add esp, 0xc
cmp word [esp + 0xe4], cx
jg 0x4065bb
mov cx, word [eax]
cmp word [esp + 0xe8], cx
jl 0x4065bb
mov cx, word [eax + 6]
cmp word [esp + 0xe6], cx
jg 0x4065bb
mov ax, word [eax + 2]
cmp word [esp + 0xea], ax
jl 0x4065bb
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0042ded0
mov edx, eax
add esp, 8
mov dword [esp + 0x80], edx
mov ecx, dword [eax]
mov dword [esp + 0x84], ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x4061ad
mov eax, dword [eax]
jmp 0x4061af
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x88], eax
je 0x4061be
mov ecx, dword [eax]
jmp 0x4061c0
xor ecx, ecx
cmp eax, ebx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x94], ebx
mov byte [esp + 0x90], 0
mov byte [esp + 0x91], 0
je 0x4061eb
mov dword [esp + 0x94], eax
jmp 0x4061f3
mov byte [esp + 0x91], 1
mov byte [esp + 0x98], 0
cmp dword [edx], ebx
je 0x406592
cmp eax, dword [esp + 0x94]
jne 0x40621b
mov cl, byte [esp + 0x98]
test cl, cl
jne 0x406592
mov edx, dword [esp + 0x10]
push edx
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.0042def0
add esp, 0xc
mov esi, eax
mov ax, word [esi + 4]
mov ecx, dword [esp + 0xe8]
cmp cx, ax
mov byte [esp + 0xd8], 3
jge 0x40624d
mov eax, ecx
mov cx, word [esi]
mov edx, dword [esp + 0xe4]
cmp dx, cx
movsx eax, ax
jle 0x406261
mov ecx, edx
movsx ecx, cx
sub eax, ecx
mov ecx, esi
shl eax, 1
mov edi, eax
call fcn.00406ee0
lea ecx, [esp + 0xe4]
mov bp, ax
call fcn.00406ee0
cmp ax, bp
lea ecx, [esp + 0xe4]
jl 0x40628e
mov ecx, esi
call fcn.00406ee0
movsx edx, ax
cmp edi, edx
jge 0x40629e
xor al, al
jmp 0x4062ff
mov ax, word [esi + 6]
mov ecx, dword [esp + 0xea]
cmp cx, ax
jge 0x4062b0
mov eax, ecx
mov cx, word [esi + 2]
mov edx, dword [esp + 0xe6]
cmp dx, cx
movsx eax, ax
jle 0x4062c5
mov ecx, edx
movsx ecx, cx
sub eax, ecx
mov ecx, esi
shl eax, 1
mov edi, eax
call fcn.00406ec0
lea ecx, [esp + 0xe4]
mov bp, ax
call fcn.00406ec0
cmp ax, bp
lea ecx, [esp + 0xe4]
jl 0x4062f2
mov ecx, esi
call fcn.00406ec0
movsx edx, ax
cmp edi, edx
setge al
test al, al
mov byte [esp + 0xd8], 2
je 0x40656b
mov esi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x20]
mov edi, dword [esi + 0xc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4063b9
cmp bp, bx
jne 0x406373
mov eax, dword [0x4c94a0]
mov ebp, 1
cmp eax, 4
jle 0x4063a3
mov eax, dword [esp + 0xec]
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
push 0x4b1e2c
push eax
mov eax, dword [esp + 0x104]
push ecx
mov ecx, dword [esp + 0x104]
push edx
push eax
push ecx
call fcn.00407820
add esp, 0x18
cmp dword [0x4c94a0], 4
jle 0x4063a3
mov edx, dword [esp + 0x34]
movsx ecx, word [esp + 0xf4]
mov eax, dword [edx + 0xc]
movsx edx, word [esp + 0xf0]
push eax
push ecx
push edx
push 0x4b1dec
call fcn.00443600
add esp, 0x10
mov eax, dword [esp + 0x34]
push 0x4c9500
lea ecx, [eax + 0xc]
call fcn.00443000
inc ebp
mov dword [esp + 0x20], ebp
mov edi, dword [esp + 0x18]
cmp bp, bx
jne 0x406573
cmp edi, ebx
jne 0x4064f3
mov ecx, esi
call fcn.0043f030
mov ecx, dword [esp + 0xec]
mov edi, eax
push ecx
mov dword [esp + 0x1c], edi
lea ecx, [edi + 0xc]
call fcn.00443000
mov al, byte [esp + 0x10]
push 8
test al, al
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, ebx
je 0x406406
mov dword [eax], ebx
mov dword [eax + 4], ebx
jmp 0x406408
xor eax, eax
mov esi, eax
lea eax, [edi + 0x10]
mov dword [esp + 0x48], eax
mov edx, dword [eax]
mov dword [esp + 0x4c], edx
mov eax, dword [eax]
cmp eax, ebx
je 0x406421
mov eax, dword [eax]
jmp 0x406423
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x50], eax
je 0x40642f
mov eax, dword [eax]
jmp 0x406431
xor eax, eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x60], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0x59], 0
call fcn.00402ba0
test al, al
je 0x406461
push esi
lea ecx, [esp + 0x4c]
call fcn.00402a70
jmp 0x406492
lea ecx, [esp + 0x48]
call fcn.00402b60
test al, al
je 0x40647a
push esi
lea ecx, [esp + 0x4c]
call fcn.00402af0
jmp 0x40648c
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esi], eax
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx]
mov dword [edx], esi
mov eax, dword [esp + 0x48]
mov dword [eax], esi
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0042ded0
mov dword [esp + 0xa4], eax
mov edx, dword [eax]
mov dword [esp + 0xa8], edx
mov eax, dword [eax]
add esp, 8
cmp eax, ebx
je 0x4064ba
mov eax, dword [eax]
jmp 0x4064bc
xor eax, eax
cmp eax, ebx
mov dword [esp + 0xa4], eax
je 0x4064cb
mov eax, dword [eax]
jmp 0x4064cd
xor eax, eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xb4], 0
mov byte [esp + 0xac], 0
mov byte [esp + 0xad], 0
lea ecx, [esp + 0x80]
call fcn.00402070
lea ecx, [esp + 0x9c]
mov esi, eax
call fcn.00402ba0
test al, al
je 0x406520
push esi
lea ecx, [esp + 0xa0]
call fcn.00402a70
jmp 0x406573
lea ecx, [esp + 0x9c]
call fcn.00402b60
test al, al
je 0x406548
push esi
lea ecx, [esp + 0xa0]
call fcn.00402af0
mov eax, dword [esp + 0x9c]
mov dword [eax], esi
jmp 0x406573
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esi], eax
mov ecx, dword [esp + 0x9c]
mov edx, dword [ecx]
mov dword [edx], esi
mov eax, dword [esp + 0x9c]
mov dword [eax], esi
jmp 0x406573
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x80]
call fcn.004403e0
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x80]
jmp 0x4061fb
cmp dword [edx], ebx
jne 0x4065bb
lea ecx, [esp + 0x64]
call fcn.00402070
mov esi, eax
cmp esi, ebx
je 0x4065bb
push 0x435f80
lea ecx, [esi + 4]
call fcn.0043fe20
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x64]
call fcn.004403e0
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
jmp 0x40610a
cmp dword [edx], ebx
jne 0x4065f4
lea ecx, [esp + 0x2c]
call fcn.00402070
mov esi, eax
cmp esi, ebx
je 0x4065f4
mov ecx, esi
call fcn.00402140
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.004403e0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
jmp 0x40603d
cmp bp, bx
jle 0x40662d
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
mov ax, bp
jmp 0x406e9d
cmp edi, ebx
je 0x406e39
mov ecx, dword [esp + 0x10]
lea edx, [edi + 0x10]
push ecx
push edx
call fcn.0042de50
add esp, 8
lea ecx, [esp + 0x2c]
call fcn.00402ba0
test al, al
je 0x40665f
push edi
lea ecx, [esp + 0x30]
call fcn.00402a70
jmp 0x406690
lea ecx, [esp + 0x2c]
call fcn.00402b60
test al, al
je 0x406678
push edi
lea ecx, [esp + 0x30]
call fcn.00402af0
jmp 0x40668a
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [edi], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov dword [edx], edi
mov eax, dword [esp + 0x2c]
mov dword [eax], edi
lea ecx, [esp + 0xb8]
push ecx
mov ecx, edi
call fcn.0043d1f0
mov edx, dword [eax]
sub esp, 8
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 4]
movsx edx, word [esp + 0x2c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xe8]
movsx ecx, word [esp + 0x30]
add ecx, edx
mov dword [esp + 0x1c], ecx
lea ecx, [eax + 0x24]
fild dword [esp + 0x1c]
fmul dword [0x4a8208]
fstp qword [esp]
call fcn.00437ae0
mov edi, dword [0x4c9e88]
fstp dword [esp + 0x10]
cmp edi, ebx
je 0x406722
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00442a90
mov edi, dword [0x4c9e88]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406736
push 1
call fcn.00442a90
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x406736
mov byte [ebp], 0
mov eax, dword [esp + 0xec]
cmp ebp, ebx
mov al, byte [eax]
je 0x406795
test al, al
je 0x406759
movsx ecx, al
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x406795
movsx eax, word [esp + 0x2a]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
fld dword [edx + 0x14]
fild dword [esp + 0x14]
fld qword [0x4c9480]
fadd qword [0x4a8200]
fxch st(2)
fmulp st(2)
fld dword [esp + 0x10]
faddp st(2)
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x406795
mov bl, 1
jmp 0x406797
xor bl, bl
test ebp, ebp
je 0x4067a4
push ebp
call fcn.00442aa0
add esp, 4
test bl, bl
je 0x406809
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push 0x4b1dc8
push ecx
mov ecx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x104]
push eax
push ecx
push edx
call fcn.00407820
mov eax, dword [esp + 0x30]
add esp, 0x18
push 0x4c9500
lea ecx, [eax + 0xc]
call fcn.00443000
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
jmp 0x406e99
mov edi, dword [0x4c9e58]
test edi, edi
je 0x40684c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00442a90
mov edi, dword [0x4c9e58]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406860
push 1
call fcn.00442a90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x406860
mov byte [ebp], 0
mov eax, dword [esp + 0xec]
test ebp, ebp
mov al, byte [eax]
je 0x4068bf
test al, al
je 0x406883
movsx ecx, al
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x4068bf
movsx eax, word [esp + 0x2a]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
fld dword [edx + 0x14]
fild dword [esp + 0x14]
fld qword [0x4a8200]
fsub qword [0x4c9480]
fxch st(2)
fmulp st(2)
fld dword [esp + 0x10]
faddp st(2)
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x4068bf
mov bl, 1
jmp 0x4068c1
xor bl, bl
test ebp, ebp
je 0x4068ce
push ebp
call fcn.00442aa0
add esp, 4
test bl, bl
je 0x406933
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push 0x4b1da8
push ecx
mov ecx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x104]
push eax
push ecx
push edx
call fcn.00407820
mov eax, dword [esp + 0x30]
add esp, 0x18
push 0x4c9500
lea ecx, [eax + 0xc]
call fcn.00443000
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
jmp 0x406e99
mov edi, dword [0x4c9ec8]
test edi, edi
je 0x406976
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00442a90
mov edi, dword [0x4c9ec8]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40698a
push 1
call fcn.00442a90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40698a
mov byte [ebp], 0
mov eax, dword [esp + 0xec]
test ebp, ebp
mov al, byte [eax]
je 0x406a0f
test al, al
je 0x4069ad
movsx ecx, al
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x406a0f
movsx eax, word [esp + 0x2a]
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov edx, dword [ecx + 0x14]
fld qword [0x4c9480]
fadd qword [0x4a8200]
mov dword [esp + 0x20], edx
fmul dword [esp + 0x20]
fadd dword [esp + 0x10]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
je 0x406a09
fld qword [0x4a8200]
fsub qword [0x4c9480]
fmul dword [ecx + 0x14]
fadd dword [esp + 0x10]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x406a0f
mov bl, 1
jmp 0x406a11
fstp st(0)
mov bl, 1
jmp 0x406a11
xor bl, bl
test ebp, ebp
je 0x406a1e
push ebp
call fcn.00442aa0
add esp, 4
test bl, bl
je 0x406a83
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push 0x4b1d7c
push ecx
mov ecx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x104]
push eax
push ecx
push edx
call fcn.00407820
mov eax, dword [esp + 0x30]
add esp, 0x18
push 0x4c9500
lea ecx, [eax + 0xc]
call fcn.00443000
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
jmp 0x406e99
mov edi, dword [0x4c9e68]
test edi, edi
je 0x406ac6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00442a90
mov edi, dword [0x4c9e68]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406ada
push 1
call fcn.00442a90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x406ada
mov byte [ebp], 0
mov eax, dword [esp + 0xec]
test ebp, ebp
mov al, byte [eax]
je 0x406b55
test al, al
je 0x406afd
movsx ecx, al
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x406b55
movsx eax, word [esp + 0x26]
mov ecx, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov edx, dword [ecx + 0x14]
fld dword [esp + 0x10]
mov dword [esp + 0x20], edx
fld dword [esp + 0x20]
fmul qword [0x4c9480]
fsubp st(1)
fld st(1)
fcompp
fnstsw ax
test ah, 1
jne 0x406b4f
fld dword [ecx + 0x14]
fmul qword [0x4c9480]
fadd dword [esp + 0x10]
fxch st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x406b55
mov bl, 1
jmp 0x406b57
fstp st(0)
mov bl, 1
jmp 0x406b57
xor bl, bl
test ebp, ebp
je 0x406b64
push ebp
call fcn.00442aa0
add esp, 4
test bl, bl
je 0x406bc9
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push 0x4b1d40
push ecx
mov ecx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x104]
push eax
push ecx
push edx
call fcn.00407820
mov eax, dword [esp + 0x30]
add esp, 0x18
push 0x4c9500
lea ecx, [eax + 0xc]
call fcn.00443000
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
jmp 0x406e99
mov edi, dword [0x4c9e48]
test edi, edi
je 0x406c0c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00442a90
mov edi, dword [0x4c9e48]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406c20
push 1
call fcn.00442a90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x406c20
mov byte [ebp], 0
mov eax, dword [esp + 0xec]
test ebp, ebp
mov al, byte [eax]
je 0x406c73
test al, al
je 0x406c43
movsx ecx, al
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x406c73
movsx eax, word [esp + 0x26]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
fld dword [edx + 0x14]
fild dword [esp + 0x14]
fxch st(1)
fmul qword [0x4c9480]
fadd dword [esp + 0x10]
fcompp
fnstsw ax
test ah, 1
je 0x406c73
mov bl, 1
jmp 0x406c75
xor bl, bl
test ebp, ebp
je 0x406c82
push ebp
call fcn.00442aa0
add esp, 4
test bl, bl
je 0x406ce7
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push 0x4b1d18
push ecx
mov ecx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x104]
push eax
push ecx
push edx
call fcn.00407820
mov eax, dword [esp + 0x30]
add esp, 0x18
push 0x4c9500
lea ecx, [eax + 0xc]
call fcn.00443000
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
jmp 0x406e99
mov edi, dword [0x4c9e78]
test edi, edi
je 0x406d2a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00442a90
mov edi, dword [0x4c9e78]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x406d3e
push 1
call fcn.00442a90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x406d3e
mov byte [ebp], 0
mov eax, dword [esp + 0xec]
test ebp, ebp
mov al, byte [eax]
je 0x406d95
test al, al
je 0x406d61
movsx ecx, al
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x406d95
movsx eax, word [esp + 0x26]
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x14], eax
fld dword [edx + 0x14]
fild dword [esp + 0x14]
fld dword [esp + 0x10]
fxch st(2)
fmul qword [0x4c9480]
fsubp st(2)
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x406d95
mov bl, 1
jmp 0x406d97
xor bl, bl
test ebp, ebp
je 0x406da4
push ebp
call fcn.00442aa0
add esp, 4
test bl, bl
je 0x406e09
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push 0x4b1cf4
push ecx
mov ecx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x104]
push eax
push ecx
push edx
call fcn.00407820
mov eax, dword [esp + 0x30]
add esp, 0x18
push 0x4c9500
lea ecx, [eax + 0xc]
call fcn.00443000
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
jmp 0x406e99
lea ecx, [esp + 0x24]
call fcn.004331c0
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
lea ecx, [esp + 0xe4]
call fcn.004331c0
xor ax, ax
jmp 0x406e9d
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
push 0x4b1cd0
push ecx
mov ecx, dword [esp + 0x104]
push edx
mov edx, dword [esp + 0x104]
push eax
push ecx
push edx
call fcn.00407820
add esp, 0x18
lea ecx, [esp + 0x24]
call fcn.004331c0
push 0x435f80
lea ecx, [esp + 0x20]
mov byte [esp + 0xdc], 0
call fcn.0043fe20
lea ecx, [esp + 0xe4]
call fcn.004331c0
mov ax, 1
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc
ret