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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64be38
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov byte [esi + 0x30], 0
lea eax, [esi + 0x30]
mov dword [esi + 0x28], 0
lea edi, [esi + 0x32]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov word [eax], cx
lea eax, [esi + 0x18]
mov dword [eax + 4], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [eax]
mov word [eax], cx
mov byte [edi], cl
mov eax, dword [esi]
mov dword [esi + 4], ecx
mov word [eax], cx
lea eax, [esi + 0xc]
mov ecx, eax
mov dword [esi + 0x34], 0xffffffff
mov dword [ebp - 0x28], eax
call fcn.004066d0
mov ecx, dword [ebx]
push edi
mov edi, dword [ebp + 8]
mov edx, edi
push 6
call fcn.0043c850
add esp, 8
test eax, eax
jne 0x43d4a2
mov al, byte [esi + 0x32]
lea ecx, [esi + 0x33]
push esi
mov dword [ebp - 0x20], ecx
mov byte [ecx], al
mov ecx, ebx
push edi
call fcn.0043ce30
test eax, eax
jne 0x43d4a2
cmp byte [ebx + 0xdb], al
je 0x43d247
mov ecx, dword [ebx]
mov edx, edi
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push 0x41
call fcn.0043c850
add esp, 8
test eax, eax
jne 0x43d4a2
cmp byte [ebp + 0xb], al
je 0x43d247
push 0x6abb00
push eax
mov ecx, esi
call fcn.0049faa0
push esi
lea ecx, [esi + 0x18]
call fcn.0049f5a0
cmp byte [ebx + 0xdc], 0
je 0x43d273
mov ecx, dword [ebx]
lea eax, [esi + 0x30]
push eax
push 0x3f
mov edx, edi
call fcn.0043c850
add esp, 8
test eax, eax
jne 0x43d4a2
xor cl, cl
mov byte [ebp + 0xf], cl
cmp byte [esi + 0x30], cl
je 0x43d396
mov edx, dword [ebx + 8]
mov cl, 1
mov byte [ebp + 0xf], cl
test edx, edx
je 0x43d396
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov eax, dword [edx]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push edx
call dword [eax + 0xc]
test eax, eax
jne 0x43d4a2
cmp dword [ebp - 0x10], 1
jne 0x43d393
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x40]
mov eax, dword [ebx]
push edx
push 4
push edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
mov ax, word [ebp - 0x40]
test edi, edi
jne 0x43d354
cmp ax, 8
jne 0x43d319
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x43d31e
push ecx
lea ecx, [esi + 0x24]
call fcn.0049f610
mov edi, dword [ebp - 0x14]
xor cl, cl
mov byte [ebp + 0xf], cl
mov dword [ebp + 8], edi
mov dword [esi + 0x34], edi
cmp edi, 0xffffffff
jne 0x43d325
mov eax, dword [esi + 0x18]
xor edx, edx
mov dword [esi + 0x1c], 0
mov word [eax], dx
mov byte [esi + 0x33], 1
jmp 0x43d37d
test ax, ax
je 0x43d2f1
mov edi, 0x80004005
jmp 0x43d354
lea eax, [esi + 0x18]
mov ecx, ebx
push eax
push edi
call fcn.0043d0c0
mov edi, eax
test edi, edi
jne 0x43d350
mov edx, dword [ebp - 0x14]
lea eax, [esi + 0x33]
mov ecx, dword [ebx]
push eax
push 6
call fcn.0043c850
mov edi, eax
add esp, 8
test edi, edi
je 0x43d377
mov ax, word [ebp - 0x40]
test ax, ax
je 0x43d361
lea ecx, [ebp - 0x40]
call fcn.004a7790
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 8]
mov cl, byte [ebp + 0xf]
mov dword [ebp - 4], 0xffffffff
cmp word [ebp - 0x40], 0
je 0x43d396
lea ecx, [ebp - 0x40]
call fcn.004a7790
mov cl, byte [ebp + 0xf]
cmp byte [esi + 0x31], 0
jne 0x43d3a0
test cl, cl
je 0x43d3ff
mov ecx, dword [esi]
call fcn.0043d120
mov ecx, eax
mov dword [ebp + 8], ecx
test ecx, ecx
js 0x43d3ff
cmp ecx, dword [esi + 0x1c]
jae 0x43d3c1
mov eax, dword [esi + 0x18]
xor edx, edx
mov dword [esi + 0x1c], ecx
mov word [eax + ecx*2], dx
mov eax, dword [esi]
add ecx, ecx
add eax, 2
mov dword [ebp - 0x18], ecx
add eax, ecx
lea ecx, [esi + 0x24]
push eax
call fcn.0049f520
cmp dword [ebp + 8], 0
je 0x43d3f3
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov cx, word [ecx + eax - 2]
call fcn.004263b0
test al, al
jne 0x43d3f3
xor eax, eax
jmp 0x43d3f8
mov eax, 1
mov byte [esi + 0x33], al
mov byte [esi + 0x30], 1
cmp byte [esi + 0x38], 0
je 0x43d495
lea edx, [esi + 0xc]
mov ecx, ebx
push edx
push dword [esi + 0x3c]
push edi
call fcn.0043cb30
test eax, eax
jne 0x43d4a2
cmp byte [esi + 0x31], al
jne 0x43d42a
cmp byte [ebp + 0xf], al
je 0x43d4a0
cmp dword [esi + 0x10], 0
je 0x43d4a0
mov ecx, dword [esi + 0x10]
lea ebx, [esi + 0xc]
mov eax, dword [ebx]
mov edi, dword [eax + ecx*4 - 4]
mov ecx, dword [edi]
call fcn.0043d120
mov esi, eax
test esi, esi
js 0x43d48a
lea edx, [ecx + 2]
mov ecx, dword [ebp - 0x1c]
lea edx, [edx + esi*2]
push edx
call fcn.0049f520
test esi, esi
je 0x43d470
mov eax, dword [edi]
mov cx, word [eax + esi*2 - 2]
call fcn.004263b0
test al, al
jne 0x43d470
xor eax, eax
jmp 0x43d475
mov eax, 1
mov ecx, dword [ebp - 0x20]
push esi
mov byte [ecx], al
mov ecx, edi
mov eax, dword [ebp - 0x24]
mov byte [eax], 1
call fcn.00403d50
test esi, esi
jne 0x43d4a0
mov ecx, ebx
call fcn.00425e40
jmp 0x43d4a0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.004a0900
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8