Function at 0x40f2e0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x615d03
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x30]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0x6287d8
mov dword [esi + 0x1c], 0x628808
lea ebp, [esi + 0x60]
mov dword [esi], 0x628ac4
mov dword [esi + 0x18], 0x628a94
mov dword [esi + 0x1c], 0x628a84
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ebx
push edi
mov dword [esp + 0x20], esi
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ebx
mov dword [esp + 0x38], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
lea edi, [esi + 0x98]
mov eax, 0x6575c8
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
lea ecx, [esi + 0xc0]
mov byte [esp + 0x38], 4
mov byte [esi + 0xac], bl
call fcn.0051c1b4
mov ecx, dword [esp + 0x40]
push ecx
mov byte [esp + 0x3c], 5
call fcn.0046c0a0
mov dword [esi + 0x5c], eax
mov eax, dword [eax + 0x2c]
mov dword [esi + 0x34], eax
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], edx
add edx, ecx
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp]
add esp, 4
cmp eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jbe 0x40f3e2
push eax
mov ecx, ebp
call fcn.0040d2e0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x10]
add ecx, eax
mov dword [ebp + 4], ecx
push edx
lea ecx, [esi + 0x70]
call fcn.0055a090
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esi + 0x78]
call fcn.0040ec10
mov ecx, dword [esp + 0x1c]
sub esp, 0x14
mov eax, esp
mov dword [esp + 0x2c], esp
push ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea ecx, [esi + 0x88]
mov dword [eax + 0x10], ebx
call fcn.0040ecb0
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0051b61b
add esp, 8
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 8]
sub eax, dword [edi]
sub ecx, edx
cmp eax, ecx
mov byte [esp + 0x38], 6
mov dword [esp + 0x1c], edx
mov dword [esp + 0x40], ecx
jae 0x40f46b
push eax
push ecx
mov ecx, edi
call fcn.00518c68
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
cmp eax, 0x6575c8
je 0x40f48d
push ecx
push edx
push eax
call fcn.005f7b00
mov ecx, dword [edi]
mov edx, dword [esp + 0x4c]
lea eax, [ecx + edx]
mov dword [edi + 4], eax
add esp, 0xc
mov byte [eax], bl
mov eax, dword [esp + 0x24]
cmp eax, 0x6575c8
mov byte [esp + 0x38], 5
je 0x40f4a6
push eax
call fcn.005f7371
add esp, 4
xor ecx, ecx
cmp dword [esp + 0x10], ebx
jbe 0x40f4e3
mov edx, dword [esp + 0x14]
neg edx
mov eax, dword [esi + 0x7c]
mov edi, dword [esi + 0x70]
add eax, ebx
cmp ecx, dword [esp + 0x14]
mov dword [edi + ecx*4], eax
mov edi, edx
jae 0x40f4c9
mov edi, ecx
mov eax, dword [esi + 0x7c]
add eax, ebx
add ecx, 1
add edx, 1
add ebx, 0x50
cmp ecx, dword [esp + 0x10]
mov dword [eax + 0x30], esi
mov dword [eax + 0x38], edi
jb 0x40f4b4
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
lea eax, [esi + 0x20]
mov dword [eax], ecx
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x24], ecx
lea ecx, [ecx + edx*4]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x28], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], 0x6287c4
mov dword [esi + 0x38], 0xa
push eax
mov eax, dword [edx + 0x18]
call eax
mov ecx, dword [esp + 0x34]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c
ret 4