Function at 0x40f082
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov eax, 0x400
call fcn.00408a70
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], esp
mov byte [ecx], al
push esi
mov dword [ebp - 0x20], eax
mov dword [ebx], eax
call fcn.0040ebf9
mov edi, eax
test edi, edi
pop ecx
je 0x40f3c6
sub esi, dword [edi + 4]
mov eax, dword [edi + 0x18]
mov dword [ebx], eax
xor ebx, ebx
inc ebx
cmp dword [0x49b730], 0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], ebx
jne 0x40f1ac
cmp dword [0x49b6e4], 0
jne 0x40f3c6
call fcn.0040ef4a
test eax, eax
mov dword [0x49b6e4], eax
je 0x40f3c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PDBOpenValidate3
push eax
call esi
test eax, eax
mov dword [0x49b6f4], eax
je 0x40f19c
push str.PDBOpenDBI
push dword [0x49b6e4]
call esi
test eax, eax
mov dword [0x49b6f8], eax
je 0x40f19c
push str.DBIQueryModFromAddr
push dword [0x49b6e4]
call esi
test eax, eax
mov dword [0x49b6fc], eax
je 0x40f19c
push str.ModQueryLines
push dword [0x49b6e4]
call esi
test eax, eax
mov dword [0x49b700], eax
je 0x40f19c
push str.ModClose
push dword [0x49b6e4]
call esi
test eax, eax
mov dword [0x49b704], eax
je 0x40f19c
push str.DBIClose
push dword [0x49b6e4]
call esi
test eax, eax
mov dword [0x49b708], eax
je 0x40f19c
push str.PDBClose
push dword [0x49b6e4]
call esi
test eax, eax
mov dword [0x49b70c], eax
jne 0x40f1a3
xor eax, eax
jmp 0x40f3c9
mov esi, dword [ebp - 0x14]
mov dword [0x49b730], ebx
mov eax, dword [edi + 0x10]
movzx eax, word [eax + 6]
xor ebx, ebx
test ax, ax
mov dword [ebp - 0x14], eax
jbe 0x40f3c6
mov ecx, dword [edi + 0x14]
movzx eax, bx
lea eax, [eax + eax*4]
shl eax, 3
cmp dword [ecx + eax + 0xc], esi
jae 0x40f1e2
mov edx, dword [edi + 0x14]
add eax, edx
mov edx, esi
sub edx, dword [eax + 0xc]
cmp edx, dword [eax + 0x10]
jb 0x40f1ee
inc ebx
cmp bx, word [ebp - 0x14]
jb 0x40f1c4
jmp 0x40f3c6
movzx eax, bx
lea eax, [eax + eax*4]
sub esi, dword [ecx + eax*8 + 0xc]
cmp esi, 0xffffffff
mov dword [ebp - 0x14], esi
je 0x40f3c6
mov eax, 0x104
call fcn.00408a70
mov eax, esp
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x30]
push eax
push 0x411b79
push dword [edi + 0x18]
call dword [0x49b6f4]
add esp, 0x20
test eax, eax
je 0x40f3c6
lea eax, [ebp - 0x18]
push eax
xor edi, edi
push edi
push 0x41371c
push dword [ebp - 0x1c]
call dword [0x49b6f8]
add esp, 0x10
test eax, eax
je 0x40f3bc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x1a]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
inc ebx
push ebx
push dword [ebp - 0x18]
call dword [0x49b6fc]
add esp, 0x1c
test eax, eax
je 0x40f3b2
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x10]
call dword [0x49b700]
add esp, 0xc
test eax, eax
je 0x40f3a8
cmp dword [ebp - 4], edi
je 0x40f3a8
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
call dword [0x49b700]
add esp, 0xc
test eax, eax
je 0x40f3a8
movzx eax, word [edi]
and dword [ebp - 8], 0
test eax, eax
jle 0x40f398
mov eax, dword [ebp - 8]
mov eax, dword [edi + eax*4 + 4]
add eax, edi
movzx ecx, word [eax]
lea edx, [eax + ecx*4 + 4]
lea esi, [edx + ecx*8]
mov dword [ebp - 0x24], esi
xor esi, esi
test ecx, ecx
jle 0x40f316
mov edi, dword [ebp - 0x14]
cmp dword [edx + esi*8], edi
ja 0x40f30e
cmp edi, dword [edx + esi*8 + 4]
jbe 0x40f323
inc esi
cmp esi, ecx
jl 0x40f300
mov edi, dword [ebp - 0xc]
movzx eax, word [edi]
inc dword [ebp - 8]
cmp dword [ebp - 8], eax
jl 0x40f2e4
jmp 0x40f398
mov eax, dword [eax + esi*4 + 4]
add eax, dword [ebp - 0xc]
or ebx, 0xffffffff
movzx ecx, word [eax + 2]
xor edi, edi
test ecx, ecx
lea esi, [eax + ecx*4 + 4]
mov dword [ebp - 8], ebx
jle 0x40f395
mov edx, dword [ebp - 0x14]
sub edx, dword [eax + edi*4 + 4]
cmp edx, ebx
jae 0x40f34e
mov dword [ebp - 8], edi
mov ebx, edx
inc edi
cmp edi, ecx
jl 0x40f33e
mov eax, dword [ebp - 8]
test eax, eax
jl 0x40f395
movzx eax, word [esi + eax*2]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
xor esi, esi
cmp byte [eax], 0
je 0x40f385
mov ecx, dword [ebp + 0xc]
sub ecx, eax
cmp esi, edi
jge 0x40f38b
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc esi
inc eax
cmp byte [eax], 0
jne 0x40f375
cmp esi, edi
mov eax, esi
jl 0x40f38e
lea eax, [edi - 1]
mov ecx, dword [ebp + 0xc]
mov byte [eax + ecx], 0
mov edi, dword [ebp - 0xc]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
call dword [0x49b704]
pop ecx
push dword [ebp - 0x18]
call dword [0x49b708]
pop ecx
push dword [ebp - 0x1c]
call dword [0x49b70c]
pop ecx
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
leave
ret