Function at 0x40d440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d3af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x24]
call fcn.0045ac02
mov dword [esp + 0x30], 0
call fcn.0045abf6
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
mov eax, dword [eax + 0x94]
push eax
call fcn.0045adb8
mov ax, word [esi + 0x6ec]
mov edi, dword [0x4e0310]
test ax, ax
mov byte [esp + 0x30], 1
je 0x40d567
mov ecx, dword [esi + 0x90]
cmp ax, word [ecx + 0x24]
je 0x40d567
mov word [ecx + 0x24], ax
mov ecx, dword [esi + 0x6ec]
mov edx, dword [esi + 0x90]
shr ecx, 0x10
mov word [edx + 0x26], cx
lea ecx, [esp + 8]
call fcn.0045ac02
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 0x6ec]
mov byte [esp + 0x30], 2
push eax
push 0x5c11bc
push ecx
call fcn.0045abfc
mov edx, dword [esi + 0x90]
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [edx + 8]
mov edx, dword [esp + 8]
push ecx
push edx
push 0x5c1550
push eax
call edi
mov eax, dword [esi + 0x6ec]
lea ecx, [esp + 8]
shr eax, 0x10
push eax
push 0x5c11bc
push ecx
call fcn.0045abfc
lea edx, [esp + 0x28]
push 0x5c1534
push edx
call fcn.004285c0
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x90]
mov eax, dword [eax]
add esp, 0x14
mov ecx, dword [ecx + 8]
push edx
mov edx, dword [esp + 0xc]
push edx
push eax
push ecx
call edi
lea ecx, [esp + 0x1c]
call fcn.0045abe4
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.0045abe4
mov eax, dword [esi + 0x90]
mov cx, word [esi + 0x6f0]
cmp word [eax + 0x28], cx
je 0x40d61f
mov word [eax + 0x28], cx
mov eax, dword [esi + 0x6f0]
mov ecx, dword [esi + 0x90]
shr eax, 0x10
mov word [ecx + 0x2a], ax
lea ecx, [esp + 8]
call fcn.0045ac02
xor edx, edx
lea eax, [esp + 8]
mov dx, word [esi + 0x6f0]
mov byte [esp + 0x30], 3
push edx
push 0x5c11bc
push eax
call fcn.0045abfc
mov ecx, dword [esi + 0x90]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 8]
push edx
push ecx
push 0x5c1528
push eax
call edi
mov edx, dword [esi + 0x6f0]
lea eax, [esp + 8]
shr edx, 0x10
push edx
push 0x5c11bc
push eax
call fcn.0045abfc
mov ecx, dword [esi + 0x90]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 8]
push edx
push ecx
push 0x5c1518
push eax
call edi
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.0045abe4
mov eax, dword [esi + 0x90]
mov cx, word [esi + 0x6f4]
cmp word [eax + 0x2c], cx
je 0x40d6d7
mov word [eax + 0x2c], cx
mov edx, dword [esi + 0x6f4]
mov eax, dword [esi + 0x90]
lea ecx, [esp + 8]
shr edx, 0x10
mov word [eax + 0x2e], dx
call fcn.0045ac02
xor ecx, ecx
lea edx, [esp + 8]
mov cx, word [esi + 0x6f4]
mov byte [esp + 0x30], 4
push ecx
push 0x5c11bc
push edx
call fcn.0045abfc
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 0xc
mov eax, dword [eax + 8]
push ecx
push edx
push 0x5c150c
push eax
call edi
mov eax, dword [esi + 0x6f4]
lea ecx, [esp + 8]
shr eax, 0x10
push eax
push 0x5c11bc
push ecx
call fcn.0045abfc
mov edx, dword [esi + 0x90]
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [edx + 8]
mov edx, dword [esp + 8]
push ecx
push edx
push 0x5c14fc
push eax
call edi
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.0045abe4
call fcn.0045afe6
test eax, eax
je 0x40d6e9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40d6eb
xor eax, eax
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x465
push eax
call dword [0x4e116c]
mov ecx, dword [esi + 0x174]
push ecx
call dword [0x4e1154]
test eax, eax
je 0x40d929
mov edx, dword [esi + 0x6ec]
mov ax, word [esi + 0x6ec]
shr edx, 0x10
push ebx
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0040d1a0
mov edx, dword [esi + 0x6f0]
mov ax, word [esi + 0x6f0]
shr edx, 0x10
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x4c], 5
call fcn.0040d1a0
mov edx, dword [esi + 0x6f4]
mov ax, word [esi + 0x6f4]
shr edx, 0x10
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x58], 6
call fcn.0040d1a0
mov edx, dword [esi + 0x6f8]
mov ax, word [esi + 0x6f8]
shr edx, 0x10
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x64], 7
call fcn.0040d1a0
add esp, 0x30
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 8
call fcn.0045ac02
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
mov bl, 9
push 0xf26d
push eax
mov byte [esp + 0x4c], bl
call fcn.0045b1a8
mov ecx, dword [esp + 0x24]
add esp, 0x18
push ecx
lea ecx, [esi + 0x154]
call fcn.0045adb2
mov edx, dword [esi + 0x6ec]
mov ax, word [esi + 0x6ec]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040d1a0
add esp, 0xc
mov edx, dword [eax]
lea eax, [esp + 0xc]
push edx
push 0xf281
push eax
mov byte [esp + 0x40], 0xa
call fcn.0045b1a8
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call fcn.0045abe4
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0x114]
call fcn.0045adb2
mov edx, dword [esi + 0x6f0]
mov ax, word [esi + 0x6f0]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040d1a0
add esp, 0xc
mov edx, dword [eax]
lea eax, [esp + 0xc]
push edx
push 0xf282
push eax
mov byte [esp + 0x40], 0xb
call fcn.0045b1a8
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call fcn.0045abe4
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0xd4]
call fcn.0045adb2
mov edx, dword [esi + 0x6f4]
mov ax, word [esi + 0x6f4]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040d1a0
add esp, 0xc
mov edx, dword [eax]
lea eax, [esp + 0xc]
push edx
push 0xf283
push eax
mov byte [esp + 0x40], 0xc
call fcn.0045b1a8
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call fcn.0045abe4
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0x94]
call fcn.0045adb2
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 8
call fcn.0045abe4
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call fcn.0045abe4
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 6
call fcn.0045abe4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 5
call fcn.0045abe4
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 1
call fcn.0045abe4
pop ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call fcn.0045abe4
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], 0xffffffff
call fcn.0045abe4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret