Function at 0x4164d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4164d9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
test dl, dl
je 0x4164f2
add esp, 0xfffffff0
call fcn.00402a50
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x416aa5
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp + 8]
push eax
mov ecx, edi
xor edx, edx
mov eax, esi
call fcn.0041259c
mov eax, dword [ebp + 8]
mov dword [esi + 0x28], eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x40dab8]
call fcn.0040db84
mov dword [esi + 0x10], eax
mov ebx, dword [esi + 0x10]
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x6c], 0x23
mov dword [ebx + 0x70], 0x69
mov dword [ebx + 0x74], 0x19e
mov dword [ebx + 0x78], 0x146
mov byte [ebx + 0x7c], 0
mov dword [ebx + 0x84], 0xff00000f
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 8
mov eax, 0x416ad8
call fcn.0040c80c
lea edx, [ebp - 0x14]
lea eax, [ebx + 0x90]
mov ecx, dword [0x40bb60]
call fcn.00403b74
mov byte [ebx + 0xa0], 0
mov byte [ebx + 0xa2], 0
mov byte [ebx + 0xa3], 1
xor eax, eax
mov dword [ebx + 0xa4], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov byte [ebx + 0x88], 1
mov byte [ebx + 0xc0], 0
lea eax, [ebx + 0x68]
xor edx, edx
call fcn.00403368
lea eax, [ebx + 0x8c]
xor edx, edx
call fcn.00403368
xor eax, eax
mov dword [ebx + 0xc4], eax
xor eax, eax
mov dword [ebx + 0xc8], eax
mov byte [ebx + 0x1b9], 0xff
lea eax, [ebp - 0x18]
mov edx, 0x416ae8
call fcn.00403368
mov edx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0040dfd4
mov dl, 2
mov eax, ebx
call fcn.0040e008
mov byte [ebx + 0x1ba], 0
push 0x416b00
mov eax, dword [0x419794]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, ebx
call fcn.0040e0a8
xor edx, edx
mov eax, ebx
call fcn.0040e07c
mov byte [ebx + 0x1b8], 0
mov byte [ebx + 0xaa], 1
mov dword [ebx + 0x1d4], 0xffffff
lea eax, [ebx + 0x1c4]
xor edx, edx
call fcn.00403368
mov byte [ebx + 0xa8], 0
mov byte [ebx + 0x1c9], 0
mov dword [ebx + 0x1d0], ebx
mov dword [ebx + 0x1cc], 0x40e710
xor eax, eax
mov dword [ebx + 0x1b0], eax
xor eax, eax
mov dword [ebx + 0x1b4], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x34]
mov dl, 1
mov eax, dword [0x412984]
call fcn.0040282c
mov ebx, eax
mov dword [esi + 0xc], ebx
push 2
lea eax, [ebx + 0xc]
mov ecx, 1
mov edx, dword [0x41295c]
call fcn.004045b8
add esp, 4
push 0
lea eax, [ebx + 0x10]
mov ecx, 1
mov edx, dword [0x412970]
call fcn.004045b8
add esp, 4
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x64]
mov dl, 1
mov eax, dword [0x415c88]
call fcn.00415d48
mov ebx, eax
mov dword [esi + 0x14], ebx
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x74], 0x18e
mov dword [ebx + 0x78], 0x120
mov byte [ebx + 0x7c], 5
mov dword [ebx + 0x84], 0xff00000f
push 0
push 1
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov dl, 8
mov eax, 0x416ad8
call fcn.0040c80c
lea edx, [ebp - 0x14]
lea eax, [ebx + 0x90]
mov ecx, dword [0x40bb60]
call fcn.00403b74
mov byte [ebx + 0xa0], 0
mov byte [ebx + 0xa2], 1
mov byte [ebx + 0xa3], 1
xor eax, eax
mov dword [ebx + 0xa4], eax
xor eax, eax
mov dword [ebx + 0x80], eax
mov byte [ebx + 0x88], 1
mov byte [ebx + 0xc0], 0
lea eax, [ebx + 0x68]
xor edx, edx
call fcn.00403368
lea eax, [ebx + 0x8c]
xor edx, edx
call fcn.00403368
xor eax, eax
mov dword [ebx + 0xc4], eax
xor eax, eax
mov dword [ebx + 0xc8], eax
mov eax, dword [0x41978c]
mov eax, dword [eax]
mov dword [ebx + 0xac], eax
mov dword [ebx + 0xb0], 4
mov dword [ebx + 0xb4], 0xff00000f
xor eax, eax
mov dword [ebx + 0xb8], eax
xor eax, eax
mov dword [ebx + 0xbc], eax
lea eax, [ebx + 0x1a0]
xor edx, edx
call fcn.00403368
mov byte [ebx + 0x1a4], 0
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x34]
mov dl, 1
mov eax, dword [0x416220]
call fcn.0040282c
mov ebx, eax
mov dword [esi + 0x18], ebx
mov eax, 0x416b08
call fcn.0040c7a8
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0xc]
mov edx, 0x416b10
call fcn.00403368
lea eax, [ebx + 8]
mov edx, 0x416b18
call fcn.00403368
mov dl, 1
mov eax, dword [0x40fa0c]
call fcn.0040282c
mov ebx, eax
mov dword [esi + 0x1c], ebx
lea eax, [ebx + 8]
mov edx, 0x416b20
call fcn.00403368
lea eax, [ebx + 0xc]
xor edx, edx
call fcn.00403368
mov dl, 1
mov eax, dword [0x40ff8c]
call fcn.0040282c
mov dword [esi + 0x20], eax
mov dl, 1
mov eax, dword [0x40fc74]
call fcn.0040282c
mov ebx, eax
mov dword [esi + 0x24], ebx
mov eax, ebx
mov byte [eax + 5], 1
mov dx, 2
call fcn.0040fcdc
mov eax, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [eax + 8], esi
mov dword [eax + 4], edi
mov eax, dword [esi + 0x24]
push eax
push 0x40fd04
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040bd2c
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc]
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 0x40e714
lea edx, [ebp - 0x24]
mov ax, 3
call fcn.0040bd2c
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc]
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 + 0x18]
push eax
push 0x4163d8
lea edx, [ebp - 0x24]
mov ax, 1
call fcn.0040bd2c
mov eax, dword [esi + 0x10]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x214], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x218], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x21c], edx
mov eax, dword [esi + 0x1c]
push eax
push 0x40fb04
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040bd2c
mov eax, dword [esi + 0x14]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x1e4], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x1e8], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x1ec], edx
mov eax, dword [esi + 0x20]
push eax
push 0x40fffc
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040bd2c
mov eax, dword [esi + 0x18]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x20], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x24], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x28], edx
mov eax, dword [esi + 0x14]
push eax
push 0x415ec4
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040bd2c
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x28], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x2c], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x30], edx
mov eax, dword [esi + 0x20]
push eax
push 0x410078
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040bd2c
mov ebx, dword [esi + 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x18], eax
push ebx
push 0x40fa84
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040bd2c
mov eax, dword [esi + 0x20]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x3c], edx
mov edx, dword [ebp - 0x20]
mov dword [eax + 0x40], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x44], edx
mov eax, dword [esi + 0x18]
push eax
push 0x4162cc
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.0040bd2c
mov eax, dword [esi + 0x24]
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 0x40e738
lea edx, [ebp - 0x24]
mov ax, 4
call fcn.0040bd2c
mov eax, dword [esi + 0x24]
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
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.0040d4a0
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.0040d478
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.0040db60
mov eax, dword [esi + 0x10]
xor edx, edx
mov dword [eax + 0x1ac], edx
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.0040d4a0
xor edx, edx
mov eax, dword [esi + 0x14]
call fcn.0040d478
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x64]
call fcn.00409b44
mov eax, dword [esi + 0x10]
mov dword [esi + 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416aac
lea eax, [ebp - 0x18]
call fcn.004031b4
lea eax, [ebp - 0x14]
mov edx, dword [0x40bb60]
call fcn.00403a5c
ret