Function at 0x409700
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8466
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4d9164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2c], esi
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x2c], 0
mov dword [esi], 0
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
test edx, edx
je 0x409807
xor eax, eax
mov dword [ebp - 0x44], 0
mov word [ebp - 0x44], ax
mov eax, edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4097e4
sub eax, edi
lea ecx, [ebp - 0x44]
sar eax, 1
push eax
push edx
call fcn.00437950
lea eax, [ebp - 0x44]
mov ecx, 1
jmp 0x409814
lea ecx, [ebp - 0x60]
call fcn.00407290
mov ecx, 2
mov dword [ebp - 0x28], 0
xor edx, edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], dx
mov dword [ebp - 4], 2
test cl, 2
je 0x4098b0
mov edx, dword [ebp - 0x4c]
and ecx, 0xfffffffd
mov dword [ebp - 0x2c], ecx
cmp edx, 8
jb 0x40989c
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40988f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409c10
push edx
push ecx
call fcn.00481131
mov ecx, dword [ebp - 0x2c]
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
mov byte [ebp - 4], 3
test cl, 1
je 0x4098f3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4098f3
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4098e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409c10
push edx
push ecx
call fcn.00481131
add esp, 8
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x44]
push dword [ebp - 0x2c]
mov edx, str.bdch.dll
call fcn.004307d0
add esp, 4
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.00405760
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x409958
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40994e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409c15
push edx
push ecx
call fcn.00481131
add esp, 8
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041ea30
mov byte [ebp - 4], 5
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
lea ecx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x44]
call fcn.00403df0
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x409990
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
mov eax, dword [edi]
mov dword [edi], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4099af
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4099ed
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4099e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409c1a
push edx
push ecx
call fcn.00481131
add esp, 8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x409a12
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.GetAPIVersion
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 4], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.EnableBdch
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 8], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.UninitBdch
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.SetWerText
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.AddExtraFilesToDump
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x14], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.GetSettings
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.SetSettings
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.SyncSettings
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x20], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.ListDumps
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x24], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.FreeDumpResponse
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x28], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.SubmitDump
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x2c], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.DeleteDump
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x30], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.SignalHandler
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x34], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.GetSettingsFromFile
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x38], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.SaveSettingsToFile
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x3c], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.ConvertOldConfigToNewConfig
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov dword [esi + 0x40], eax
mov eax, dword [esi]
mov dword [ebp - 0x2c], eax
mov edx, str.ReleaseBdchSettings
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2c]
call fcn.004079f0
mov edx, dword [ebp - 0x14]
mov dword [esi + 0x44], eax
cmp edx, 8
jb 0x409bf1
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409be7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409c1f
push edx
push ecx
call fcn.00481131
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004810ea
mov esp, ebp
pop ebp
ret 8
call fcn.004861f9
call fcn.004861f9
call fcn.004861f9
call fcn.004861f9
int3