Function at 0x417020
Capabilities:
Access peb ldr_data
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a313e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
mov dword [esp + 0x30], ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00484f51
xor edi, edi
lea ecx, [esp + 0x70]
mov dword [esp + 0xac], edi
call fcn.0047ef6a
mov ebx, vtable.CFileException.0
mov dword [esp + 0x70], ebx
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x80], eax
push edi
or esi, 0xffffffff
push edi
lea ecx, [esp + 0x88]
mov byte [esp + 0xb4], 1
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], esi
call fcn.004042c0
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x70]
push eax
push edi
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 2
call fcn.00485255
test eax, eax
jne 0x4170ff
mov byte [esp + 0xac], al
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov dword [esp + 0x70], ebx
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4170f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0xac], esi
jmp 0x417684
lea ecx, [esp + 0x84]
call fcn.0042a330
push edi
push edi
push 2
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb8], 3
call fcn.00484ce9
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00484c5e
lea ecx, [esp + 0x10]
call fcn.00484d3a
cmp eax, 2
jne 0x417152
cmp edx, edi
je 0x4171c4
mov ebx, 0x16
fld dword [esp + 0x28]
push 0
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x98]
fld dword [esp + 0x44]
fstp qword [esp]
call fcn.0042a3d0
mov eax, ebx
cdq
push 0
mov edi, edx
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x1c]
add ebx, 0x14
call fcn.00484ce9
push 4
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 4
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00484c5e
lea ecx, [esp + 0x10]
call fcn.00484d3a
cmp esi, eax
jne 0x417157
cmp edi, edx
jne 0x417157
mov ebx, vtable.CFileException.0
lea ecx, [esp + 0x10]
call fcn.00484eef
call fcn.0047ef80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0xb4], 4
call fcn.00403140
mov esi, dword [esp + 0x2c]
mov eax, dword [esi - 4]
mov edi, dword [esi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
add esp, 8
or eax, ecx
jge 0x417221
push edi
lea ecx, [esp + 0x28]
call fcn.00402f00
mov esi, dword [esp + 0x24]
push esi
call fcn.0046ac3f
add esp, 4
push str..DAT
mov dword [esi - 0xc], edi
push str..CRS
lea ecx, [esp + 0x2c]
mov word [esi + edi*2], 0
call fcn.00403830
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x70]
push edx
push 0
push esi
lea ecx, [esp + 0x1c]
call fcn.00485255
test eax, eax
je 0x41760a
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.00484ce9
push 2
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 2
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call fcn.00484c5e
lea ecx, [esp + 0x10]
call fcn.00484d3a
test eax, eax
jne 0x4172af
test edx, edx
je 0x417601
xor ebx, ebx
mov edx, dword [esp + 0x2c]
lea eax, [ebx + edx + 6]
cdq
push 0
mov edi, edx
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.00484ce9
push 4
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 4
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 4
lea edx, [esp + 0x5c]
push edx
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 4
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 4
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00484c5e
lea ecx, [esp + 0x10]
call fcn.00484d3a
cmp esi, eax
jne 0x417330
cmp edi, edx
je 0x4175f8
mov ax, word [esp + 0xc]
add ebx, 0x32
cmp ax, 6
jbe 0x417346
add dword [esp + 0x2c], 0x642
test ax, ax
fld dword [esp + 0x38]
fmul qword [0x4a8cb8]
fmul qword [0x4a8c50]
fstp dword [esp + 0x38]
jne 0x4173f2
cmp word [esp + 0x20], ax
je 0x4173bb
fld dword [esp + 0x40]
fcomp dword [0x4a8fb0]
fnstsw ax
test ah, 0x41
jne 0x41738c
fld dword [esp + 0x38]
fcomp dword [0x4a8fb0]
fnstsw ax
test ah, 0x41
je 0x4173bb
mov edx, dword [ebp + 0xc]
fld dword [esp + 0x58]
mov ecx, dword [esp + 0x34]
push edx
sub esp, 0x18
fstp qword [esp + 0x10]
add ecx, 0x58
fld dword [esp + 0x44]
fstp qword [esp + 8]
fld dword [esp + 0x4c]
fstp qword [esp]
call fcn.00429ae0
jmp 0x4175a6
mov eax, dword [ebp + 0xc]
fld dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
push eax
sub esp, 0x20
fstp qword [esp + 0x18]
add ecx, 0x3c
fld dword [esp + 0x7c]
fstp qword [esp + 0x10]
fld dword [esp + 0x4c]
fstp qword [esp + 8]
fld dword [esp + 0x54]
fstp qword [esp]
call fcn.0042c360
jmp 0x4175a6
cmp ax, 6
jbe 0x417405
mov ecx, dword [esp + 0x2c]
lea eax, [ebx + ecx - 0x640]
jmp 0x41740d
mov edx, dword [esp + 0x2c]
lea eax, [ebx + edx - 0x18]
cdq
push 0
push edx
push eax
lea ecx, [esp + 0x1c]
call fcn.00484ce9
cmp word [esp + 0xc], 0
mov dword [esp + 0x5c], 0
jbe 0x4175a6
nop
push 2
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 2
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.00484c5e
mov esi, dword [esp + 0x88]
xor edx, edx
xor eax, eax
test esi, esi
mov ecx, esi
je 0x4175a6
movzx edi, word [esp + 0x3c]
inc edi
jmp 0x417470
cmp edx, edi
jge 0x417480
mov eax, ecx
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
inc edx
test ecx, ecx
jne 0x417470
test eax, eax
je 0x4175a6
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x50], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x64], eax
mov eax, esi
movzx esi, word [esp + 0x44]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x60], edx
xor edx, edx
xor ecx, ecx
inc esi
cmp edx, esi
jge 0x4174c0
mov ecx, eax
mov eax, dword [eax]
mov ecx, dword [ecx + 8]
inc edx
test eax, eax
jne 0x4174b0
test ecx, ecx
je 0x4175a6
cmp word [esp + 0x20], 0
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x68], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], eax
je 0x41755a
fld dword [esp + 0x40]
fcomp dword [0x4a8fb0]
fnstsw ax
test ah, 0x41
jne 0x41750e
fld dword [esp + 0x38]
fcomp dword [0x4a8fb0]
fnstsw ax
test ah, 0x41
je 0x41755a
mov ecx, dword [ebp + 0xc]
fld dword [esp + 0x28]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
sub esp, 0x10
fstp qword [esp + 8]
add ecx, 0x74
fld dword [esp + 0x64]
fstp qword [esp]
call fcn.00426bb0
jmp 0x417592
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
add ecx, 0x3c
call fcn.0042c360
mov eax, dword [esp + 0x5c]
inc eax
cmp ax, word [esp + 0xc]
mov dword [esp + 0x5c], eax
jb 0x417430
mov ecx, dword [esp + 0x2c]
lea eax, [ebx + ecx]
cdq
push 0
mov edi, edx
mov esi, eax
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.00484ce9
push 2
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
call fcn.00484c5e
push 2
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
call fcn.00484c5e
lea ecx, [esp + 0x10]
call fcn.00484d3a
cmp esi, eax
jne 0x4172b1
cmp edi, edx
jne 0x4172b1
mov esi, dword [esp + 0x24]
mov ebx, vtable.CFileException.0
lea ecx, [esp + 0x10]
call fcn.00484eef
lea ecx, [esp + 0x84]
call fcn.00429a50
lea eax, [esi - 0x10]
mov byte [esp + 0xac], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417638
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x84]
mov byte [esp + 0xac], 2
call fcn.0042a380
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov byte [esp + 0xac], 0
mov dword [esp + 0x70], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417679
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0xac], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00484f90
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8