Function at 0x45e7a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a54a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
mov eax, 0x7fff
push ebp
mov ebp, ecx
mov word [esp + 0xc], ax
mov word [esp + 0xe], ax
mov eax, 0xffff8001
push esi
push edi
mov dword [ebp], fcn.0045ed40
mov word [esp + 0x18], ax
mov word [esp + 0x1a], ax
mov edi, dword [esp + 0x2c]
xor ebx, ebx
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + 6], bl
mov byte [ebp + 0x57], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0xac]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x24], ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [esp + 0x10], 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x30]
mov dword [ebp + 0x104], esi
fild dword [0x4dbf90]
mov edi, dword [esi]
fmul qword [0x4a8270]
call sub.MSVCRT.dll__ftol
mov cx, ax
mov eax, dword [0x4dbf90]
cdq
sub eax, edx
sar eax, 1
neg eax
sub eax, ecx
mov ecx, esi
shl eax, 1
push eax
push ebx
call dword [edi + 0xc]
mov edx, dword [eax]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
call fcn.00402110
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
test al, al
jne 0x45e87a
mov ecx, esi
sub ecx, edi
jmp 0x45e87c
xor ecx, ecx
mov eax, dword [0x4dbf90]
cdq
sub eax, edx
mov edx, dword [0x4dbfa0]
sar eax, 1
lea ebx, [edx + edx*4]
shl ebx, 4
movsx ecx, cx
add ebx, eax
cmp ecx, ebx
mov bx, word [esp + 0x16]
jle 0x45e8be
cmp word [esp + 0x14], si
jg 0x45e8b6
cmp word [esp + 0x1a], bx
jl 0x45e8b6
sub esi, edi
mov word [ebp + 4], si
jmp 0x45e8ca
xor esi, esi
mov word [ebp + 4], si
jmp 0x45e8ca
lea edx, [edx + edx*4]
shl edx, 4
add edx, eax
mov word [ebp + 4], dx
mov si, word [ebp + 4]
mov edi, dword [esp + 0x16]
mov eax, dword [0x4dbd38]
mov ecx, 1
movsx edx, si
neg edi
cmp edx, eax
jle 0x45e8eb
mov byte [esp + 0x10], cl
mov esi, eax
mov eax, dword [0x4dbd28]
movsx edx, di
cmp edx, eax
jle 0x45e8fd
mov byte [esp + 0x10], cl
mov edi, eax
mov ax, word [0x4dbd74]
test ax, ax
jne 0x45e922
mov ax, word [0x4dbd18]
mov dx, word [0x4dbd08]
mov word [0x4dbd74], ax
mov word [0x4dbd76], dx
push ecx
push 0
push 0
push ecx
movsx edx, word [ebp + 4]
movsx ecx, bx
mov dword [esp + 0x40], ecx
push 0
fild dword [esp + 0x44]
push ecx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x28]
mov word [ebp + 0xa8], ax
fstp dword [esp]
fild dword [esp + 0x48]
mov ax, word [0x4dbd76]
push ecx
mov cx, word [ebp + 0xa8]
mov word [ebp + 0xaa], ax
fstp dword [esp]
push 0
push edi
push esi
push eax
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
call dword [fcn.004c8558]
movsx ecx, di
mov dword [esp + 0x64], ecx
add esp, 0x34
fild dword [esp + 0x30]
movsx ecx, si
fstp dword [esp]
mov dword [esp + 0x30], ecx
push ecx
fild dword [esp + 0x34]
mov dword [ebp + 0x100], eax
mov edx, dword [eax]
mov ecx, eax
fstp dword [esp]
push 0
push 0
call dword [edx + 0x68]
mov dx, word [0x4dbcf8]
mov ax, word [0x4dbce8]
add word [0x4dbd74], dx
add word [0x4dbd76], ax
mov ecx, ebp
call fcn.0045eac0
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 8