Function at 0x40fca0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492798
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4ae23c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x4ae00c
mov dword [ebp - 4], edi
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
mov byte [ebp - 4], 2
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
mov byte [ebp - 4], 3
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov dword [esi + 0x28], 0xf
mov dword [esi + 0x24], edi
mov byte [esi + 0x14], 0
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
mov byte [ebp - 4], 5
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
mov byte [ebp - 4], 6
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov eax, dword [0x4ae00c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae00c
mov byte [ebp - 4], 7
call edx
add eax, 0x10
mov dword [esi + 0x38], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push ecx
mov byte [ebp - 4], 8
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov word [esi + 0x44], di
mov dword [ebp - 0x10], edi
call fcn.00428cb0
mov edx, eax
add esp, 8
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x10], edi
jle 0x41000d
lea ebx, [edi + 1]
mov ecx, dword [edx + edi*4]
cmp word [ecx], 0x2f
jne 0x40ffdd
movzx eax, word [ecx + 2]
add eax, 0xffffffac
cmp eax, 0x20
ja case.0x40fdf5.85
movzx eax, byte [eax + 0x410068]
jmp dword [eax*4 + 0x410038]
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov ecx, dword [edx + edi*4 + 4]
inc edi
push ecx
lea ecx, [esi + 0x10]
inc ebx
call fcn.00409bf0
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov edx, dword [edx + edi*4 + 4]
inc edi
push edx
lea ecx, [esi + 0xc]
inc ebx
call fcn.00409bf0
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov eax, dword [edx + edi*4 + 4]
inc edi
push eax
lea ecx, [esi + 0x30]
inc ebx
call fcn.00409bf0
push str._r01
push 0x497b0c
lea ecx, [esi + 0x30]
call fcn.0040eb70
push 0x497b08
push 0x497b00
lea ecx, [esi + 0x30]
call fcn.0040eb70
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov ecx, dword [edx + edi*4 + 4]
inc edi
push ecx
lea ecx, [esi + 0x34]
inc ebx
call fcn.00409bf0
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov edx, dword [edx + edi*4 + 4]
inc edi
push edx
lea ecx, [esi + 4]
inc ebx
call fcn.00409bf0
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov eax, dword [edx + edi*4 + 4]
inc edi
push eax
mov ecx, esi
inc ebx
call fcn.00409bf0
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
test eax, eax
js 0x41002c
cmp eax, edx
jg 0x41002c
cmp word [ecx + eax*2], 0x5c
je case.0x40fdf5.85
push 0x497afc
mov ecx, esi
call fcn.00401b10
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov ecx, dword [edx + edi*4 + 4]
inc edi
push ecx
lea ecx, [ebp + 8]
inc ebx
call fcn.0040fb30
mov edx, dword [ebp + 8]
push 0x5c
push edx
mov byte [ebp - 4], 9
call fcn.004638bd
add esp, 8
test eax, eax
je 0x40ff81
sub eax, dword [ebp + 8]
sar eax, 1
test eax, eax
jle 0x40ff81
inc eax
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.0040ee90
push eax
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.00401890
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00401550
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp + 8]
call fcn.0040f120
push eax
lea ecx, [esi + 4]
mov byte [ebp - 4], 0xb
call fcn.00401890
lea ecx, [ebp - 0x20]
call fcn.00401550
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.00401550
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov eax, dword [edx + edi*4 + 4]
inc edi
push eax
inc ebx
call fcn.00428af0
add esp, 4
mov dword [esi + 0x3c], eax
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov ecx, dword [edx + edi*4 + 4]
inc edi
push ecx
inc ebx
call fcn.00428af0
add esp, 4
mov dword [esi + 0x40], eax
jmp case.0x40fdf5.85
mov byte [esi + 0x45], 1
jmp case.0x40fdf5.85
cmp ebx, dword [ebp - 0x10]
jge case.0x40fdf5.85
mov edx, dword [edx + edi*4 + 4]
inc edi
push edx
lea ecx, [esi + 0x38]
inc ebx
call fcn.00409bf0
jmp case.0x40fdf5.85
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x1c], edx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40ffe5
sub eax, dword [ebp - 0x1c]
sar eax, 1
push eax
push ecx
lea ecx, [esi + 8]
call fcn.004017b0
mov edx, dword [ebp - 0x14]
inc edi
inc ebx
cmp edi, dword [ebp - 0x10]
jl 0x40fdd1
push edx
call fcn.00428f00
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401050
mov edi, edi
invalid