Function at 0x40df78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40df80
push ecx
push ebx
push esi
test dl, dl
je 0x40df96
add esp, 0xfffffff0
call fcn.004028ec
mov byte [ebp - 1], dl
mov esi, eax
xor eax, eax
push ebp
push 0x40e9a1
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.004027ec
mov dword [0x410694], esi
xor ecx, ecx
mov dl, 1
mov eax, dword [0x40ad6c]
call fcn.0040ae7c
mov ebx, eax
mov dword [esi + 4], ebx
xor eax, eax
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x84], 0x14
mov dword [ebx + 0x88], 0x69
mov dword [ebx + 0x8c], 0x1b8
mov dword [ebx + 0x90], 0x1a5
mov byte [ebx + 0x94], 0
mov dword [ebx + 0x9c], 0xff00000f
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 8
mov eax, 0x40e9d0
call fcn.00409bc0
lea edx, [ebp - 0x14]
lea eax, [ebx + 0xa8]
mov ecx, dword [0x40958c]
call fcn.0040367c
mov byte [ebx + 0xb8], 0
mov byte [ebx + 0xba], 1
mov byte [ebx + 0xbb], 1
xor eax, eax
mov dword [ebx + 0xbc], eax
mov byte [ebx + 0xc2], 1
xor eax, eax
mov dword [ebx + 0x98], eax
mov byte [ebx + 0xa0], 1
mov byte [ebx + 0xd8], 0
lea eax, [ebx + 0x80]
xor edx, edx
call fcn.0040313c
lea eax, [ebx + 0xa4]
xor edx, edx
call fcn.0040313c
xor eax, eax
mov dword [ebx + 0xdc], eax
xor eax, eax
mov dword [ebx + 0xe0], eax
mov byte [ebx + 0x1c5], 0xff
lea eax, [ebp - 0x18]
mov edx, 0x40e9e0
call fcn.0040313c
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0040b2f8
mov dl, 2
mov eax, ebx
call fcn.0040b32c
mov byte [ebx + 0x1c6], 0
push 0x40e9e8
mov eax, dword [0x40f338]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, ebx
call fcn.0040b3cc
xor edx, edx
mov eax, ebx
call fcn.0040b3a0
mov byte [ebx + 0x1c4], 0
mov dword [ebx + 0x1d8], 0xffffff
lea eax, [ebx + 0x1c8]
xor edx, edx
call fcn.0040313c
mov byte [ebx + 0xc0], 0
mov byte [ebx + 0x1cd], 0
mov dword [ebx + 0x1d4], ebx
mov dword [ebx + case.0x408c3e.5], 0x40ba3c
xor eax, eax
mov dword [ebx + 0x1bc], eax
xor eax, eax
mov dword [ebx + 0x1c0], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x3c]
mov dl, 1
mov eax, dword [0x40bc4c]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 8], ebx
mov eax, ebx
mov dword [eax + 0x40], 0x808080
mov byte [eax + 0x44], 0
mov dword [eax + 0x3c], 0x2101
xor edx, edx
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], 1
mov dword [eax + 0x50], 1
mov byte [eax + 0x6c], 0
mov dword [eax + 0x70], 4
mov dl, 1
mov eax, dword [0x40c3d0]
call fcn.0040c428
mov ebx, eax
mov dword [esi + 0xc], ebx
mov edx, 0x21
mov eax, ebx
call fcn.0040c4d0
xor edx, edx
mov eax, ebx
call fcn.0040c4dc
xor edx, edx
mov eax, ebx
call fcn.0040c4e8
mov byte [ebx + 0x14], 0
mov dl, 1
mov eax, dword [0x40c594]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x10], ebx
mov eax, ebx
mov byte [eax + 4], 1
mov byte [eax + 5], 1
mov byte [eax + 6], 1
mov dl, 1
mov eax, dword [0x40c6a8]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x14], ebx
mov eax, ebx
mov byte [eax + 5], 1
mov dx, 5
call fcn.0040c710
mov dl, 1
mov eax, dword [0x40c6a8]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x18], ebx
mov eax, ebx
mov byte [eax + 5], 1
mov dx, 3
call fcn.0040c710
mov dl, 1
mov eax, dword [0x40cbd0]
call fcn.0040cc2c
mov ebx, eax
mov dword [esi + 0x1c], ebx
mov eax, ebx
mov dword [eax + 4], 0x186ac
mov dword [eax + 8], 0x186b4
mov dword [eax + 0xc], 0x186a0
mov byte [eax + 0x10], 0
mov dl, 1
mov eax, dword [0x40cd2c]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x20], ebx
mov eax, ebx
mov byte [eax + 4], 0
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], 0xffffff
mov dword [eax + 0x10], 0xffffff
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], edx
xor edx, edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], edx
xor edx, edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], 0x40668000
xor edx, edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], 0x3ff00000
xor edx, edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], edx
xor edx, edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], edx
mov dl, 1
mov eax, dword [0x40cf94]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x24], ebx
mov eax, ebx
mov dword [eax + 4], 0xb50
mov dl, 1
mov eax, dword [0x40cf94]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x28], ebx
mov eax, ebx
mov dword [eax + 4], 0xb57
mov dl, 1
mov eax, dword [0x40cf94]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x2c], ebx
mov eax, ebx
mov dword [eax + 4], 0xb71
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x7c]
mov dl, 1
mov eax, dword [0x40d06c]
call fcn.0040d0e4
mov ebx, eax
mov dword [esi + 0x30], ebx
mov byte [ebx + 0x10], 0
mov dword [ebx + 0x1c], esi
push 1
lea eax, [ebx + 0x14]
mov ecx, 1
mov edx, dword [0x40d044]
call fcn.00403b3c
add esp, 4
push 2
lea eax, [ebx + 0x18]
mov ecx, 1
mov edx, dword [0x40d058]
call fcn.00403b3c
add esp, 4
mov dl, 1
mov eax, dword [0x40d308]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x34], ebx
mov eax, ebx
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], 0x3ff00000
xor edx, edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x40340000
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x18], 0x3ff00000
xor edx, edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x20], 0x40340000
mov dl, 1
mov eax, dword [0x40d460]
call fcn.004027ec
mov ebx, eax
mov dword [esi + 0x38], ebx
mov eax, ebx
mov byte [eax + 4], 2
mov dl, 1
mov eax, dword [0x40d510]
call fcn.004027ec
mov dword [esi + 0x3c], eax
mov dl, 1
mov eax, dword [0x40d5b8]
call fcn.004027ec
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x40]
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], 0x3ff00000
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x7c]
mov dl, 1
mov eax, dword [0x40d678]
call fcn.0040d72c
mov dword [esi + 0x44], eax
mov ebx, dword [esi + 0x44]
xor eax, eax
mov dword [ebx + 0x78], eax
mov dword [ebx + 0x84], 5
mov dword [ebx + 0x88], 0x168
mov dword [ebx + 0x8c], 0x19f
mov dword [ebx + 0x90], 0x14
mov byte [ebx + 0x94], 0
mov dword [ebx + 0x9c], 0xff000005
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 8
mov eax, 0x40e9d0
call fcn.00409bc0
lea edx, [ebp - 0x14]
lea eax, [ebx + 0xa8]
mov ecx, dword [0x40958c]
call fcn.0040367c
mov byte [ebx + 0xb8], 0
mov byte [ebx + 0xba], 1
mov byte [ebx + 0xbb], 1
xor eax, eax
mov dword [ebx + 0xbc], eax
mov byte [ebx + 0xc2], 1
xor eax, eax
mov dword [ebx + 0x98], eax
mov byte [ebx + 0xa0], 0
mov byte [ebx + 0xd8], 0
lea eax, [ebx + 0x80]
xor edx, edx
call fcn.0040313c
lea eax, [ebx + 0xa4]
xor edx, edx
call fcn.0040313c
xor eax, eax
mov dword [ebx + 0xdc], eax
xor eax, eax
mov dword [ebx + 0xe0], eax
mov eax, dword [0x40f334]
mov eax, dword [eax]
mov dword [ebx + 0xc4], eax
mov dword [ebx + 0xc8], 4
mov dword [ebx + 0xcc], 0xff00000f
xor eax, eax
mov dword [ebx + 0xd0], eax
xor eax, eax
mov dword [ebx + 0xd4], eax
lea eax, [ebx + 0x1c0]
mov edx, 0x40e9f0
call fcn.0040313c
mov byte [ebx + 0x1c5], 0
mov dword [ebx + 0x1b8], ebx
mov dword [ebx + 0x1b4], 0x40d858
mov byte [ebx + 0x1bc], 0
mov byte [ebx + 0x1c4], 0
xor eax, eax
mov dword [ebx + 0x1c8], eax
mov byte [ebx + 0x1bd], 1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x3c]
mov eax, dword [esi + 0x18]
push eax
push 0x40c738
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x224], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x228], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x22c], edx
mov eax, dword [esi + 8]
push eax
push 0x40c2cc
lea edx, [ebp - 0x24]
mov ax, 1
call fcn.00409690
mov eax, dword [esi + 4]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x15c], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x160], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x164], edx
mov eax, dword [esi + 0x1c]
push eax
push 0x40cc8c
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x74], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x78], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x7c], edx
mov eax, dword [esi + 0x34]
push eax
push 0x40d368
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x80], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x84], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x88], edx
mov eax, dword [esi + 4]
push eax
push 0x40a7e0
lea edx, [ebp - 0x24]
mov ax, 2
call fcn.00409690
mov eax, dword [esi + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
mov eax, dword [esi + 0x14]
push eax
push 0x40c738
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0xc]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [esi + 0x10]
push eax
push 0x40c5f0
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [esi + 0x10]
push eax
push 0x40c62c
lea edx, [ebp - 0x24]
mov ax, 1
call fcn.00409690
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [esi + 0x30]
push eax
push 0x40d158
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [esi + 0x10]
push eax
push 0x40c644
lea edx, [ebp - 0x24]
mov ax, 2
call fcn.00409690
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2c], edx
mov eax, dword [esi + 8]
push eax
push 0x40c364
lea edx, [ebp - 0x24]
mov ax, 2
call fcn.00409690
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x34], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x38], edx
mov eax, dword [esi + 8]
push eax
push 0x40bd9c
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [esi + 8]
push eax
push 0x40c2cc
lea edx, [ebp - 0x24]
mov ax, 1
call fcn.00409690
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [esi + 0xc]
push eax
push 0x40c4bc
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x1c], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [esi + 0x24]
push eax
push 0x40cff0
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], edx
mov eax, dword [esi + 0x28]
push eax
push 0x40cff0
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x24]
mov edx, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [esi + 0x2c]
push eax
push 0x40cff0
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x28]
mov edx, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [esi + 0x20]
push eax
push 0x40cdf0
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x2c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [esi + 0x38]
push eax
push 0x40d4b8
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [esi + 4]
push eax
push 0x40a918
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x24]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [esi + 4]
push eax
push 0x40a924
lea edx, [ebp - 0x24]
mov ax, 1
call fcn.00409690
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
mov eax, dword [esi + 0x40]
push eax
push 0x40d610
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x38]
mov edx, dword [ebp - 0x24]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov eax, dword [esi + 0x3c]
push eax
push 0x40d568
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x30], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x34], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x38], edx
mov eax, dword [esi + 0x44]
push eax
push 0x40d834
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00409690
mov eax, dword [esi + 0x40]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
xor edx, edx
mov eax, dword [esi + 4]
call fcn.0040a774
xor edx, edx
mov eax, dword [esi + 4]
call fcn.0040a74c
xor edx, edx
mov eax, dword [esi + 4]
call fcn.0040ae1c
mov eax, dword [esi + 4]
xor edx, edx
mov dword [eax + 0x1b8], edx
mov edx, 0x40dc98
mov eax, dword [esi + 0x30]
call fcn.0040d184
xor edx, edx
mov eax, dword [esi + 0x44]
call fcn.0040a774
xor edx, edx
mov eax, dword [esi + 0x44]
call fcn.0040a74c
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x7c]
call fcn.00408314
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e9a8
lea eax, [ebp - 0x18]
call fcn.00403018
lea eax, [ebp - 0x14]
mov edx, dword [0x40958c]
call fcn.00403564
ret