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

Disassembly:
push 0xffffffffffffffff
push 0x452e89
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x28]
xor edi, edi
cmp ebx, eax
mov dword [esp + 0x20], edi
jl 0x40f837
inc ebx
cmp ebx, edi
jne 0x40f6e1
mov esi, dword [ebp + 4]
cmp esi, edi
je 0x40f6d6
mov ecx, eax
dec eax
test ecx, ecx
je 0x40f6c7
lea ebx, [eax + 1]
push edi
mov ecx, esi
call fcn.0040f930
add esi, 0x44
dec ebx
jne 0x40f6b9
mov eax, dword [ebp + 4]
push eax
call fcn.004499bf
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x40f837
mov ecx, dword [ebp + 4]
cmp ecx, edi
jne 0x40f748
mov edi, ebx
shl edi, 4
add edi, ebx
shl edi, 2
push edi
call fcn.00449996
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x40f72e
mov ecx, esi
call fcn.0040f8f0
add esi, 0x44
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x40f71a
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x40f837
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x40f78d
cmp eax, ebx
jge 0x40f770
mov edx, ebx
sub edx, eax
push edx
mov edx, eax
shl edx, 4
add edx, eax
lea eax, [ecx + edx*4]
push eax
call fcn.0040f950
mov dword [ebp + 8], ebx
jmp 0x40f837
jle 0x40f785
mov edx, ebx
sub eax, ebx
shl edx, 4
add edx, ebx
push eax
lea eax, [ecx + edx*4]
push eax
call fcn.0040f900
mov dword [ebp + 8], ebx
jmp 0x40f837
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
jne 0x40f7b8
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x40f7ab
mov ecx, 4
jmp 0x40f7b8
cmp ecx, 0x400
jle 0x40f7b8
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
jge 0x40f7c5
mov dword [esp + 0x10], eax
jmp 0x40f7cb
mov dword [esp + 0x10], ebx
mov eax, ebx
mov ecx, eax
shl ecx, 4
add ecx, eax
shl ecx, 2
push ecx
call fcn.00449996
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov ecx, edx
mov edi, eax
shl ecx, 4
add ecx, edx
add esp, 4
shl ecx, 2
mov edx, ecx
mov dword [esp + 0x14], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
sub edx, ecx
push edx
mov edx, ecx
shl edx, 4
add edx, ecx
lea eax, [eax + edx*4]
push eax
call fcn.0040f950
mov eax, dword [ebp + 4]
push eax
call fcn.004499bf
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 4]
mov ecx, eax
shl ecx, 4
add ecx, eax
mov eax, dword [esp + 0x2c]
lea esi, [edx + ecx*4]
mov dword [esi], eax
mov ecx, dword [esp + 0x30]
mov dword [esi + 4], ecx
mov eax, dword [esp + 0x34]
lea edx, [esi + 8]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x3c]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x48]
mov dword [edx + 0xc], ecx
mov edx, dword [esp + 0x44]
push eax
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], edx
call fcn.00449d8e
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], 0xffffffff
mov dword [esi + 0x20], ecx
mov edx, dword [esp + 0x50]
mov dword [esi + 0x24], edx
mov eax, dword [esp + 0x54]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x30], edx
mov al, byte [esp + 0x60]
mov byte [esi + 0x34], al
mov ecx, dword [esp + 0x64]
mov dword [esi + 0x38], ecx
mov edx, dword [esp + 0x68]
mov dword [esi + 0x3c], edx
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x48]
mov dword [esi + 0x40], eax
call fcn.00449c55
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x48