Function at 0x4458d0
Capabilities:
Check for peb beingdebugged flag
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x476714
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4921c0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4921c0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [esp + 0x26c]
mov edx, dword [0x541434]
mov edi, ecx
mov ecx, dword [0x4eaba4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x538594]
mov dword [esp + 0x38], eax
mov eax, dword [0x4eaba0]
add ecx, 2
mov dword [esp + 0x54], edx
mov edx, dword [0x539458]
mov dword [esp + 0x58], eax
mov eax, dword [0x4a980c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [0x53816c]
add edx, 2
cmp dword [0x58cb0c], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0x34], 0
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ecx
mov ebx, 1
jne 0x4459a8
xor eax, eax
call fcn.00454390
lea edx, [esp + 0x54]
push edx
push 0
push ebx
xor edx, edx
mov ecx, edi
call fcn.0045cc30
mov dword [0x498484], ebx
mov dword [0x538590], ebx
cmp dword [esp + 0x268], 0
mov ebp, 0x536fc8
jne 0x4459bc
mov ebp, 0x4ea668
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4459c1
sub eax, edx
mov esi, eax
imul esi, dword [0x4ea33c]
mov eax, dword [0x4935ec]
cdq
sub eax, edx
mov ecx, eax
shr esi, 2
sar ecx, 1
sub ecx, esi
cmp ecx, ebx
jge 0x4459ea
mov ecx, ebx
mov eax, dword [0x4aa7b8]
cdq
sub eax, edx
mov esi, eax
mov eax, dword [0x4937f0]
sar esi, 1
add esi, ebx
imul esi, dword [0x541748]
cdq
sub eax, edx
sar eax, 1
sub eax, esi
cmp eax, ebx
jge 0x445a11
mov eax, ebx
cmp dword [0x4eab80], ebx
jge 0x445a1f
mov dword [0x541748], ebx
neg ecx
neg eax
cmp byte [0x52ab08], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
je 0x445a57
cmp dword [0x650bf8], 0
push 0
push 0x52ab08
je 0x445a50
mov ecx, 0xa
call fcn.0046d790
jmp 0x445a57
mov ecx, edi
call fcn.0046ef70
mov eax, dword [0x52a868]
shl eax, 8
add eax, dword [0x4ea664]
lea ecx, [esp + 0x18]
shl eax, 8
add eax, dword [0x541c8c]
mov edx, edi
push eax
push ecx
push ebp
lea ecx, [esp + 0x28]
call fcn.00444750
push fcn.00401000
push fcn.00402260
push 0x14
push 4
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0x78], 0x482ce8
mov dword [esp + 0x7c], 0x482cec
mov dword [esp + 0x80], 0x482cf0
mov dword [esp + 0x84], 0x482cf4
mov dword [esp + 0x88], 0x482cf8
mov dword [esp + 0x8c], 0x482cfc
mov dword [esp + 0x90], 0x482d00
mov dword [esp + 0x94], 0x482d04
mov dword [esp + 0x98], 0x482d08
mov dword [esp + 0x9c], 0x482d0c
mov dword [esp + 0xa0], 0x482d10
mov dword [esp + 0xa4], 0x482d18
mov dword [esp + 0xa8], 0x482d20
mov dword [esp + 0xac], 0x482d28
mov dword [esp + 0xb0], 0x482d30
mov dword [esp + 0xb4], 0x482d38
mov dword [esp + 0xb8], 0x482d40
mov dword [esp + 0xbc], 0x482d48
mov dword [esp + 0xc0], 0x482d50
mov dword [esp + 0xc4], 0x482d58
mov dword [esp + 0xc8], 0x482d60
call fcn.00409614
xor ebx, ebx
mov dword [esp + 0x260], ebx
mov edi, dword [0x4aa7b8]
cmp edi, ebx
jle 0x445d7c
lea esi, [esp + ebx*4 + 0xbc]
mov edi, 0x52aa00
call fcn.004021f0
cmp dword [0x4aa7b8], 9
jle 0x445bbe
cmp ebx, 9
jge 0x445bbe
mov eax, 0x482d68
mov ecx, esi
call fcn.00404040
mov eax, dword [esp + ebx*4 + 0x68]
mov ecx, esi
call fcn.00404040
mov eax, 0x482d6c
mov ecx, esi
call fcn.00404040
cmp byte [0x58cba0], 0
lea ebp, [ebx + 1]
mov dword [esp + 0x18], ebp
push ebp
je 0x445c00
mov eax, dword [0x49731c]
push 0x58cba0
push str._s_save_d.dat
push eax
call fcn.00408143
add esp, 0x10
jmp 0x445c14
mov ecx, dword [0x49731c]
push str.save_d.dat
push ecx
call fcn.00408143
add esp, 0xc
mov edx, dword [0x49731c]
push 0
push edx
call fcn.004084f2
add esp, 8
test eax, eax
jne 0x445d55
push eax
mov eax, dword [0x49731c]
push 0x8000
push eax
call fcn.004081c0
add esp, 0xc
lea ecx, [esp + 0x10c]
mov edi, eax
push ecx
push edi
call fcn.0040a5ff
push edi
call fcn.004093f4
lea edx, [esp + 0x138]
add esp, 0xc
push edx
call fcn.0040af45
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
add esp, 4
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
push ecx
inc edx
push edx
lea eax, [esp + 0x19c]
push 0x482d90
push eax
call fcn.00408143
lea eax, [esp + 0x1a4]
add esp, 0x18
xor edi, edi
xor esi, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445ca0
sub eax, edx
je 0x445d33
nop
movzx ecx, byte [esp + esi + 0x18c]
push ecx
call fcn.00409ddf
add esp, 4
test eax, eax
je 0x445cf0
movzx edx, byte [esp + esi + 0x18c]
mov eax, dword [esp + edx*4 - 0x5c]
mov cl, byte [eax]
mov eax, dword [0x49731c]
mov byte [edi + eax], cl
movzx edx, byte [esp + esi + 0x18c]
mov ecx, dword [esp + edx*4 - 0x5c]
mov dl, byte [ecx + 1]
inc edi
mov byte [edi + eax], dl
jmp 0x445d0f
mov cl, byte [esp + esi + 0x18c]
mov eax, dword [0x49731c]
cmp cl, 0x20
jne 0x445d0c
mov byte [edi + eax], 0x81
inc edi
mov byte [edi + eax], 0x40
jmp 0x445d0f
mov byte [edi + eax], cl
lea ecx, [esp + 0x18c]
inc edi
inc esi
lea ebp, [ecx + 1]
jmp 0x445d20
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x445d20
sub ecx, ebp
cmp esi, ecx
jb 0x445cb0
mov ebp, dword [esp + 0x18]
jmp 0x445d38
mov eax, dword [0x49731c]
lea ecx, [esp + ebx*4 + 0xbc]
mov byte [edi + eax], 0
call fcn.00404040
mov dword [esp + ebx*4 + 0x13c], 1
jmp 0x445d6c
mov eax, 0x482da8
mov ecx, esi
call fcn.00404040
mov dword [esp + ebx*4 + 0x13c], 0
mov edi, dword [0x4aa7b8]
mov ebx, ebp
cmp ebx, edi
jl 0x445b93
mov ecx, dword [esp + 0xbc]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x445d88
mov ebp, dword [0x4ea33c]
sub eax, esi
mov esi, eax
mov eax, dword [0x4935ec]
imul esi, ebp
cdq
sub eax, edx
sar eax, 1
shr esi, 2
mov edx, eax
sub edx, esi
cmp edx, 1
mov dword [esp + 0x1c], edx
jge 0x445dbe
mov dword [esp + 0x1c], 1
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x445dc1
sub ecx, esi
imul ecx, ebp
shr ecx, 2
add ecx, eax
mov eax, edi
cdq
sub eax, edx
mov dword [esp + 0x3c], ecx
mov ecx, eax
mov eax, dword [0x4937f0]
sar ecx, 1
dec ecx
imul ecx, dword [0x541748]
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
sub ebx, ecx
cmp ebx, 1
mov dword [esp + 0x18], ebx
jge 0x445e07
mov ebx, 1
mov dword [esp + 0x18], ebx
xor esi, esi
test edi, edi
jle 0x445e60
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
neg edi
mov eax, dword [esp + 0x30]
mov edx, esi
imul edx, dword [0x541748]
add edx, ebx
neg edx
cmp dword [esp + esi*4 + 0x13c], 0
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edx
jne 0x445e3e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + esi*4 + 0xbc]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00444750
inc esi
cmp esi, dword [0x4aa7b8]
jl 0x445e17
push 1
push 0
push 0
push 0
lea edx, [esp + 0x11c]
push edx
call dword [0x47829c]
test eax, eax
je 0x445e60
mov ecx, dword [0x497c78]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10c]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
call dword [0x4782a4]
test eax, eax
jne 0x445ea9
lea ecx, [esp + 0x10c]
push ecx
call dword [0x478288]
lea edx, [esp + 0x10c]
push edx
call dword [0x4782ac]
cmp dword [0x58ce64], 0
jne 0x44632e
mov ebp, dword [0x4782b0]
call ebp
mov ecx, dword [0x497b6c]
cmp eax, dword [ecx + 0x10]
je 0x445edb
xor eax, eax
jmp 0x445ee6
push 0x26
call dword [0x4782c8]
movzx eax, ax
mov edi, dword [0x4783b0]
test eax, 0x8000
je 0x445f56
call edi
mov esi, dword [esp + 0x34]
lea edx, [esi + 0x7d]
cmp eax, edx
ja 0x445f04
cmp eax, esi
jae 0x445f5a
call edi
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xffffffff
mov dword [esp + 0x34], esi
jns 0x445f1b
mov eax, dword [0x4aa7b8]
dec eax
imul eax, dword [0x541748]
mov ecx, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x4c], eax
mov eax, dword [0x497b6c]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], ecx
mov ecx, dword [eax + 0x10]
push edx
push ecx
call dword [0x478338]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push edx
push eax
call dword [0x478374]
jmp 0x445f5a
mov esi, dword [esp + 0x34]
call ebp
mov ecx, dword [0x497b6c]
cmp eax, dword [ecx + 0x10]
je 0x445f6b
xor eax, eax
jmp 0x445f76
push 0x28
call dword [0x4782c8]
movzx eax, ax
test eax, 0x8000
je 0x445fd8
call edi
lea edx, [esi + 0x7d]
cmp eax, edx
ja 0x445f8a
cmp eax, esi
jae 0x445fd8
call edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
inc eax
cmp eax, dword [0x4aa7b8]
jl 0x445f9f
xor eax, eax
imul eax, dword [0x541748]
mov ecx, dword [esp + 0x1c]
add eax, ebx
mov dword [esp + 0x44], eax
mov eax, dword [0x497b6c]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x10]
push edx
push ecx
call dword [0x478338]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push edx
push eax
call dword [0x478374]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0xa2c], 0x200
mov eax, dword [0x541748]
jne 0x44618c
mov ebp, dword [0x4aa7b8]
xor esi, esi
test ebp, ebp
jle 0x44603e
mov edx, ecx
mov edi, dword [edx + 0xa34]
mov ecx, ebx
cmp edi, ecx
jl 0x44602c
lea edx, [ecx + eax]
cmp edi, edx
jge 0x44602c
mov edx, dword [esp + 0x14]
mov edx, dword [edx + 0xa30]
cmp edx, dword [esp + 0x1c]
jl 0x446028
cmp edx, dword [esp + 0x3c]
jle 0x446035
mov ebx, dword [esp + 0x18]
inc esi
add ecx, eax
cmp esi, ebp
jl 0x446007
jmp 0x44603e
cmp esi, 0xffffffff
jne 0x4460ac
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
je 0x44609c
mov edx, dword [esp + 0x1c]
imul eax, ecx
add eax, ebx
neg eax
neg edx
cmp dword [esp + ecx*4 + 0x13c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jne 0x44606e
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + ecx*4 + 0xbc]
mov ebp, dword [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00444750
mov eax, dword [0x541748]
or edi, 0xffffffff
mov dword [esp + 0x28], edi
jmp 0x44619c
mov ebp, dword [esp + 0x14]
or edi, 0xffffffff
mov dword [esp + 0x28], edi
jmp 0x44619c
mov edi, dword [esp + 0x28]
cmp edi, esi
je 0x446194
cmp byte [0x52c068], 0
je 0x4460e4
cmp dword [0x650bf8], 0
push 0
push 0x52c068
je 0x446177
mov ecx, 0xa
call fcn.0046d790
mov eax, dword [0x541748]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
cmp edi, 0xffffffff
je 0x446136
mov edx, dword [esp + 0x1c]
imul eax, edi
add eax, ebx
neg eax
neg edx
cmp dword [esp + edi*4 + 0x13c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], edx
jne 0x446118
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + edi*4 + 0xbc]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00444750
mov eax, dword [0x541748]
mov edx, dword [esp + 0x1c]
mov ecx, esi
imul ecx, eax
neg edx
add ecx, ebx
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x50]
neg ecx
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + esi*4 + 0xc0]
lea eax, [esp + 0x28]
push eax
push ecx
mov edi, esi
lea ecx, [esp + 0x2c]
mov edx, ebp
mov dword [esp + 0x34], edi
call fcn.00444750
mov eax, dword [0x541748]
jmp 0x44619c
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
call fcn.0046ef70
mov eax, dword [0x541748]
jmp 0x4460e8
mov edi, dword [esp + 0x28]
mov ebp, ecx
jmp 0x44619c
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp + 0xa2c]
cmp ecx, 0x202
je 0x4461bb
cmp ecx, 0x102
jne 0x446212
cmp dword [ebp + 0xa30], 0xd
jne 0x446212
mov dword [0x58cae8], 0
cmp edi, 0xffffffff
je 0x446212
cmp dword [esp + 0x268], 0
jne 0x446357
cmp dword [esp + edi*4 + 0x13c], 0
jne 0x446357
cmp byte [0x4ea770], 0
je 0x446212
cmp dword [0x650bf8], 0
push 0
push 0x4ea770
je 0x44620b
mov ecx, 0xa
call fcn.0046d790
jmp 0x446212
mov ecx, ebp
call fcn.0046ef70
cmp dword [ebp + 0xa2c], 0x205
je 0x446251
call dword [0x4782b0]
mov edx, dword [0x497b6c]
cmp eax, dword [edx + 0x10]
je 0x446233
xor eax, eax
jmp 0x44623e
push 0x1b
call dword [0x4782c8]
movzx eax, ax
test eax, 0x8000
je 0x445e60
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov esi, dword [0x47823c]
call dword [0x4782b0]
mov ecx, dword [0x497b6c]
cmp eax, dword [ecx + 0x10]
je 0x44626c
xor eax, eax
jmp 0x446277
push 0x1b
call dword [0x4782c8]
movzx eax, ax
test eax, 0x8000
je 0x446284
push 0
call esi
jmp 0x446257
cmp byte [0x5409a0], 0
mov dword [0x58caec], 0
je 0x446305
cmp edi, 0xffffffff
je 0x4462e2
mov edx, dword [0x541748]
mov eax, dword [esp + 0x1c]
imul edx, edi
neg eax
add edx, ebx
neg edx
cmp dword [esp + edi*4 + 0x13c], 0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
jne 0x4462c9
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + edi*4 + 0xbc]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00444750
cmp dword [0x650bf8], 0
push 0
push 0x5409a0
je 0x4462fe
mov ecx, 0xa
call fcn.0046d790
jmp 0x446305
mov ecx, ebp
call fcn.0046ef70
push fcn.00401000
push 0x14
push 4
lea edx, [esp + 0xc8]
push edx
mov dword [esp + 0x270], 0xffffffff
call fcn.00407fcb
or eax, 0xffffffff
jmp 0x446480
push fcn.00401000
push 0x14
push 4
lea eax, [esp + 0xc8]
push eax
mov dword [esp + 0x270], 0xffffffff
call fcn.00407fcb
or eax, 0xffffffff
jmp 0x446480
cmp byte [0x538698], 0
je 0x446388
cmp dword [0x650bf8], 0
push 0
push 0x538698
je 0x44637c
mov ecx, 0xa
call fcn.0046d790
jmp 0x446383
mov ecx, ebp
call fcn.0046ef70
mov eax, dword [0x541748]
mov ecx, dword [esp + 0x1c]
imul eax, edi
add eax, ebx
neg eax
neg ecx
cmp dword [esp + edi*4 + 0x13c], 0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
jne 0x4463af
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + edi*4 + 0xbc]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x2c]
mov edx, ebp
call fcn.00444750
cmp dword [0x4aa7b8], 0xa
mov eax, 0x52aa00
lea edx, [eax + 1]
jge 0x446420
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4463e0
mov esi, dword [esp + 0x38]
sub eax, edx
add eax, 2
push eax
mov eax, dword [esp + edi*4 + 0xc0]
push eax
push esi
call fcn.004094f0
mov eax, 0x52aa00
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446410
sub eax, edx
mov byte [eax + esi + 2], cl
jmp 0x44645d
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446420
mov ecx, dword [esp + edi*4 + 0xbc]
mov esi, dword [esp + 0x38]
sub eax, edx
add eax, 4
push eax
push ecx
push esi
call fcn.004094f0
mov eax, 0x52aa00
add esp, 0xc
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446450
sub eax, edx
mov byte [eax + esi + 4], cl
push fcn.00401000
push 0x14
push 4
lea edx, [esp + 0xc8]
push edx
mov dword [esp + 0x270], 0xffffffff
call fcn.00407fcb
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.00407ed0
add esp, 0x250
ret 8