Function at 0x409bd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46401d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c4
mov eax, dword [0x47e1c0]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x30], edi
mov dword [esp + 0x4c], 0x400
mov dword [esp + 0x3c], ebx
mov dword [esp + 0xc], eax
lea esi, [edi + 8]
mov dword [esp + 0x4d8], ebx
mov ecx, esi
call fcn.0040b200
mov eax, dword [edi + 0x100]
mov dword [edi + 0xf0], ebx
test eax, eax
jle 0x409c7e
mov ecx, esi
call fcn.0040b360
mov ecx, esi
call fcn.0040b700
fst qword [edi + 0xe8]
fcomp qword [edi + 0xf8]
fnstsw ax
test ah, 1
jne 0x409c7e
mov ecx, dword [edi + 0x140]
call fcn.00401cc0
mov ecx, esi
call fcn.0040b780
mov edx, dword [edi + 0xf0]
mov ecx, dword [edi + 0x100]
inc edx
mov eax, edx
mov dword [edi + 0xf0], edx
cmp eax, ecx
jl 0x409c32
push 0x1000
call fcn.00436762
mov ecx, dword [ebp + 8]
add esp, 4
mov edi, eax
push 0x4000
push ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x34], edi
call fcn.0043abe8
lea edx, [esp + 0xd0]
push 0x3ff
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x4e0], 1
call fcn.0043ae62
test eax, eax
je 0x40a618
mov dword [esp + 0x40], 0
mov dword [esp + 0x50], 0x1000
mov eax, dword [esp + 0x4c]
cmp ebx, eax
jne 0x409d30
add eax, 0x200
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
add eax, 0x800
push eax
mov dword [esp + 0x54], eax
call fcn.00436762
mov esi, eax
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
jle 0x409d23
mov ecx, edi
mov eax, esi
sub ecx, esi
mov edx, ebx
mov ebx, dword [ecx + eax]
mov dword [eax], ebx
add eax, 4
dec edx
jne 0x409d18
push edi
call fcn.0043678b
add esp, 4
mov dword [esp + 0x2c], esi
mov al, byte [esp + 0xd0]
mov bl, byte [esp + 0xd1]
cmp al, 0x43
jne 0x409e7e
cmp bl, 0x46
jne 0x409e7e
lea eax, [esp + 0xdd]
push 7
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x1c]
push edx
call fcn.00424f64
fstp qword [esp + 0xc4]
lea eax, [esp + 0xf4]
push 7
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x2c]
push edx
call fcn.00424f64
fstp qword [esp + 0xac]
lea eax, [esp + 0x10b]
push 7
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x3c]
push edx
call fcn.00424f64
fstp qword [esp + 0xb4]
lea eax, [esp + 0x122]
push 7
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x4c]
push edx
call fcn.00424f64
fstp qword [esp + 0xec]
add esp, 0x40
lea eax, [esp + 0xf9]
lea ecx, [esp + 0x10]
push 7
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x1c]
push edx
call fcn.00424f64
fstp qword [esp + 0x74]
lea eax, [esp + 0x110]
push 7
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x2c]
push edx
call fcn.00424f64
fstp qword [esp + 0x94]
lea eax, [esp + 0x135]
push 7
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x3c]
push edx
call fcn.00424f64
fstp qword [esp + 0xac]
lea eax, [esp + 0x14c]
push 7
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x4c]
push edx
call fcn.00424f64
add esp, 0x40
fstp qword [esp + 0x6c]
mov bl, byte [esp + 0xd1]
lea edi, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp bl, 0x47
mov edx, ecx
jne 0x40a13e
cmp byte [esp + 0xd0], 0x30
jne 0x40a56f
lea eax, [esp + 0xd2]
push 0xa
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00412740
mov ebx, dword [esp + 0x3c]
add esp, 0xc
mov eax, dword [ebx + 0xa4]
mov edx, dword [ebx + 0x104]
test eax, eax
mov dword [ebx + 0x108], edx
jle 0x409f8d
mov dword [esp + 0x1c], eax
mov edi, dword [ebx + 0x108]
lea eax, [esp + 0x10]
mov esi, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409f11
test cl, cl
je 0x409f0d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409f11
add eax, 2
add esi, 2
test cl, cl
jne 0x409eed
xor eax, eax
jmp 0x409f16
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x409f72
mov ecx, dword [edi + 0x18]
mov eax, dword [ebx + 0x140]
mov esi, dword [edi + 0x24]
mov edx, ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x58], esi
mov esi, dword [edi + 0x2c]
shl edx, 4
add eax, edx
mov edx, dword [edi + 0x20]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x28]
mov dword [esp + 0x60], esi
mov esi, dword [ebx + 0xdc]
mov dword [esp + 0x5c], edx
mov edx, dword [ebx + 0xe0]
mov ecx, dword [esi + ecx*4]
test dword [edx], ecx
jne 0x409f64
fld qword [eax]
fchs
fstp qword [esp + 0x54]
test dword [edx + 4], ecx
jne 0x409f72
fld qword [eax + 8]
fchs
fstp qword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
add edi, 0x2e0
dec eax
mov dword [ebx + 0x108], edi
mov dword [esp + 0x1c], eax
jne 0x409ee1
lea eax, [esp + 0xfc]
push 6
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x1c]
push edx
call fcn.00424f64
fabs
fcomp qword [0x467a60]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x409ffc
fld qword [esp + 0x5c]
fmul qword [esp + 0xb4]
lea edx, [esp + 0xc]
fstp qword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 0x47d4b8
push edx
call fcn.004340ef
mov eax, dword [esp + 0x1c]
push 5
lea ecx, [esp + 0x110]
push eax
push ecx
call fcn.00424dd0
add esp, 0x1c
lea edx, [esp + 0x102]
push 6
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00412740
lea ecx, [esp + 0x1c]
push ecx
call fcn.00424f64
fabs
fcomp qword [0x467a60]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x40a05f
fld qword [esp + 0x8c]
sub esp, 8
lea edx, [esp + 0x14]
fstp qword [esp]
push 0x47d4b8
push edx
call fcn.004340ef
mov eax, dword [esp + 0x1c]
push 5
lea ecx, [esp + 0x116]
push eax
push ecx
call fcn.00424dd0
add esp, 0x1c
lea edx, [esp + 0x108]
push 6
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00412740
lea ecx, [esp + 0x1c]
push ecx
call fcn.00424f64
fabs
fcomp qword [0x467a60]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x40a0ce
fld qword [esp + 0x54]
fmul qword [esp + 0x84]
lea ecx, [esp + 0xc]
fstp qword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
push 0x47d4b8
push ecx
call fcn.004340ef
mov edx, dword [esp + 0x1c]
push 5
lea eax, [esp + 0x11c]
push edx
push eax
call fcn.00424dd0
add esp, 0x1c
lea ecx, [esp + 0x10e]
push 6
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00412740
lea eax, [esp + 0x1c]
push eax
call fcn.00424f64
fabs
fcomp qword [0x467a60]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x40a56f
fld qword [esp + 0x54]
fmul qword [esp + 0xac]
lea eax, [esp + 0xc]
fstp qword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x47d4b8
push eax
call fcn.004340ef
mov ecx, dword [esp + 0x1c]
push 5
lea edx, [esp + 0x122]
push ecx
push edx
jmp 0x40a567
cmp bl, 0x44
jne 0x40a3e9
cmp byte [esp + 0xd0], 0x30
jne 0x40a56f
cmp edx, 0x88
jge 0x40a1f4
mov eax, 0x88
sub eax, edx
test eax, eax
jle 0x40a1ac
mov dword [esp + 0x1c], eax
mov edi, 0x47d328
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], eax
jne 0x40a170
push 1
lea eax, [esp + edx + 0xd3]
push 0x47d4c0
push eax
call fcn.00424dd0
mov edi, 0x47d4bc
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd0]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xe4]
push 7
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x1c]
push edx
call fcn.00424f64
fstp qword [esp + 0x54]
lea eax, [esp + 0xfb]
push 7
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x2c]
push edx
call fcn.00424f64
fstp qword [esp + 0x54]
lea eax, [esp + 0x120]
push 6
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x3c]
push edx
call fcn.00424f64
fabs
fcomp qword [0x467a60]
add esp, 0x30
fnstsw ax
test ah, 1
je 0x40a2a4
fld qword [esp + 0x34]
fmul qword [esp + 0x64]
lea edx, [esp + 0xc]
fstp qword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 0x47d4b8
push edx
call fcn.004340ef
mov eax, dword [esp + 0x1c]
push 5
lea ecx, [esp + 0x114]
push eax
push ecx
call fcn.00424dd0
add esp, 0x1c
lea edx, [esp + 0x106]
push 6
lea eax, [esp + 0x14]
push edx
push eax
call fcn.00412740
lea ecx, [esp + 0x1c]
push ecx
call fcn.00424f64
fabs
fcomp qword [0x467a60]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x40a310
fld qword [esp + 0x34]
fmul qword [esp + 0x74]
lea ecx, [esp + 0xc]
fstp qword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
push 0x47d4b8
push ecx
call fcn.004340ef
mov edx, dword [esp + 0x1c]
push 5
lea eax, [esp + 0x11a]
push edx
push eax
call fcn.00424dd0
add esp, 0x1c
lea ecx, [esp + 0x10c]
push 6
lea edx, [esp + 0x14]
push ecx
push edx
call fcn.00412740
lea eax, [esp + 0x1c]
push eax
call fcn.00424f64
fabs
fcomp qword [0x467a60]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x40a37c
fld qword [esp + 0x44]
fmul qword [esp + 0x64]
lea eax, [esp + 0xc]
fstp qword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
push 0x47d4b8
push eax
call fcn.004340ef
mov ecx, dword [esp + 0x1c]
push 5
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.00424dd0
add esp, 0x1c
lea eax, [esp + 0x112]
push 6
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x1c]
push edx
call fcn.00424f64
fabs
fcomp qword [0x467a60]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x40a56f
fld qword [esp + 0x44]
fmul qword [esp + 0x74]
lea edx, [esp + 0xc]
fstp qword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push 0x47d4b8
push edx
call fcn.004340ef
mov eax, dword [esp + 0x1c]
push 5
lea ecx, [esp + 0x126]
push eax
push ecx
jmp 0x40a567
cmp bl, 0x54
jne 0x40a56f
cmp byte [esp + 0xd0], 0x30
jne 0x40a56f
cmp edx, 0x88
jge 0x40a49f
mov eax, 0x88
sub eax, edx
test eax, eax
jle 0x40a457
mov dword [esp + 0x1c], eax
mov edi, 0x47d328
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x1c]
mov ecx, ebx
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], eax
jne 0x40a41b
push 1
lea edx, [esp + edx + 0xd3]
push 0x47d4c0
push edx
call fcn.00424dd0
mov edi, 0x47d4bc
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xd0]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x149]
push 7
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x1c]
push edx
call fcn.00424f64
fstp qword [esp + 0x54]
lea eax, [esp + 0x160]
push 7
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00412740
lea edx, [esp + 0x2c]
push edx
call fcn.00424f64
fstp qword [esp + 0x54]
fld qword [esp + 0x64]
fabs
fcomp qword [0x467a60]
add esp, 0x20
fnstsw ax
test ah, 1
je 0x40a52c
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x47d49c
push edx
call fcn.004340ef
mov eax, dword [esp + 0x1c]
push 6
lea ecx, [esp + 0x15d]
push eax
push ecx
call fcn.00424dd0
add esp, 0x1c
fld qword [esp + 0x34]
fabs
fcomp qword [0x467a60]
fnstsw ax
test ah, 1
je 0x40a56f
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
push edx
push eax
lea ecx, [esp + 0x14]
push 0x47d49c
push ecx
call fcn.004340ef
mov edx, dword [esp + 0x1c]
push 6
lea eax, [esp + 0x164]
push edx
push eax
call fcn.00424dd0
add esp, 0x1c
lea edi, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00436762
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
mov edx, eax
mov eax, dword [esp + 0x44]
add esp, 4
lea edi, [esp + 0xd0]
mov dword [eax + ecx], edx
add eax, 4
mov dword [esp + 0x40], eax
or ecx, 0xffffffff
xor eax, eax
inc esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x3c], esi
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x3ff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xd4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 0x20202020
dec ecx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x9c]
push eax
call fcn.0043ae62
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x2c]
test eax, eax
jne 0x409cdf
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0043a6ad
push 0x2e
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4dc], 2
call fcn.0043ab06
cmp eax, 0xffffffff
jne 0x40a671
lea edx, [esp + 0x28]
push str._Ran.Dat
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0043a8d4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4dc], 3
call fcn.0043a778
mov byte [esp + 0x4d8], 2
lea ecx, [esp + 0x30]
jmp 0x40a6c7
lea ecx, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.00433d14
push str._Ran.Dat
lea edx, [esp + 0x34]
push eax
push edx
mov byte [esp + 0x4e4], 4
call fcn.0043a8d4
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4dc], 5
call fcn.0043a778
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d8], 4
call fcn.0043a63f
mov byte [esp + 0x4d8], 2
lea ecx, [esp + 0x1c]
call fcn.0043a63f
lea ecx, [esp + 0x98]
call fcn.0043aff4
mov eax, dword [esp + 0x28]
push 0x5001
push eax
lea ecx, [esp + 0xc4]
call fcn.0043abe8
test ebx, ebx
mov byte [esp + 0x4d8], 6
jle 0x40a717
mov esi, edi
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [esp + 0xc0]
call fcn.0043ae37
add esi, 4
dec edi
jne 0x40a6fe
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0xbc]
call fcn.0043aff4
call fcn.00450a42
mov eax, dword [eax + 4]
mov byte [eax + 0xc8], 1
call fcn.00450a42
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x7c]
push edi
call fcn.0043678b
add esp, 4
lea ecx, [esp + 0xbc]
mov byte [esp + 0x4d8], 2
call fcn.0043ac81
lea ecx, [esp + 0x28]
mov byte [esp + 0x4d8], 1
call fcn.0043a63f
lea ecx, [esp + 0x98]
mov byte [esp + 0x4d8], 0
call fcn.0043ac81
lea ecx, [esp + 0xc]
mov dword [esp + 0x4d8], 0xffffffff
call fcn.0043a63f
mov ecx, dword [esp + 0x4d0]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4