Function at 0x404690
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42c0e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x42df70
mov dword [esp + 0x20], 0x11
call fcn.00405090
mov ecx, esi
call fcn.00407ad0
mov edi, dword [esi + 0x244]
xor ebx, ebx
cmp edi, ebx
je 0x4046ee
mov ecx, edi
call fcn.00401d20
push edi
call fcn.00423de9
add esp, 4
mov dword [esi + 0x244], ebx
mov eax, dword [esi + 0x248]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x28c]
push ecx
call edi
mov edx, dword [esi + 0x290]
push edx
call edi
mov ecx, dword [esi + 0x398]
cmp ecx, ebx
je 0x404726
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov dword [esi + 0x398], ebx
mov ecx, esi
call fcn.0040a6f0
lea edi, [esi + 0x4f0]
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x14]
mov byte [esp + 0x20], 0x16
call fcn.0042407f
lea ecx, [edi + 0x10]
mov byte [esp + 0x20], 0x15
call fcn.0042407f
lea ecx, [edi + 0xc]
mov byte [esp + 0x20], 0x14
call fcn.0042407f
lea ecx, [edi + 8]
mov byte [esp + 0x20], 0x13
call fcn.0042407f
lea ecx, [edi + 4]
mov byte [esp + 0x20], 0x12
call fcn.0042407f
mov ecx, edi
mov byte [esp + 0x20], 0x10
call fcn.0042407f
lea edi, [esi + 0x4d8]
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x14]
mov byte [esp + 0x20], 0x1b
call fcn.0042407f
lea ecx, [edi + 0x10]
mov byte [esp + 0x20], 0x1a
call fcn.0042407f
lea ecx, [edi + 0xc]
mov byte [esp + 0x20], 0x19
call fcn.0042407f
lea ecx, [edi + 8]
mov byte [esp + 0x20], 0x18
call fcn.0042407f
lea ecx, [edi + 4]
mov byte [esp + 0x20], 0x17
call fcn.0042407f
mov ecx, edi
mov byte [esp + 0x20], 0xf
call fcn.0042407f
lea edi, [esi + 0x39c]
mov dword [esp + 0x14], edi
mov dword [edi], 0x42e064
mov eax, dword [edi + 4]
mov byte [esp + 0x20], 0x1c
cmp eax, ebx
je 0x4047fd
mov eax, dword [eax]
cmp eax, ebx
jne 0x4047f7
mov ecx, dword [edi + 0x14]
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
call fcn.0041f9ec
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [edi + 0x14], ebx
lea edi, [esi + 0x370]
mov byte [esp + 0x20], 0xd
lea ecx, [edi + 8]
mov dword [edi], 0x42e070
push ecx
call ebp
mov ecx, edi
call fcn.004104f9
lea edi, [esi + 0x350]
mov byte [esp + 0x20], 0xc
lea edx, [edi + 8]
mov dword [edi], 0x42e070
push edx
call ebp
mov ecx, edi
call fcn.004104f9
push 0x404630
push 2
lea eax, [esi + 0x2f8]
push 0x28
push eax
mov byte [esp + 0x30], 0xb
call fcn.004115b6
lea edi, [esi + 0x2e0]
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x14]
mov byte [esp + 0x20], 0x21
call fcn.0042407f
lea ecx, [edi + 0x10]
mov byte [esp + 0x20], 0x20
call fcn.0042407f
lea ecx, [edi + 0xc]
mov byte [esp + 0x20], 0x1f
call fcn.0042407f
lea ecx, [edi + 8]
mov byte [esp + 0x20], 0x1e
call fcn.0042407f
lea ecx, [edi + 4]
mov byte [esp + 0x20], 0x1d
call fcn.0042407f
mov ecx, edi
mov byte [esp + 0x20], 0xa
call fcn.0042407f
lea ecx, [esi + 0x2a8]
mov byte [esp + 0x20], 9
call fcn.0040b330
lea ecx, [esi + 0x294]
mov byte [esp + 0x20], 8
call fcn.0040b050
lea ecx, [esi + 0x280]
mov byte [esp + 0x20], 7
call fcn.0042407f
lea ecx, [esi + 0x264]
mov byte [esp + 0x20], 6
call fcn.0041f80e
lea ecx, [esi + 0x210]
mov byte [esp + 0x20], 5
call fcn.0040b680
lea edi, [esi + 0x1f0]
mov byte [esp + 0x20], 4
lea ecx, [edi + 8]
mov dword [edi], 0x42e070
push ecx
call ebp
mov ecx, edi
call fcn.004104f9
mov byte [esp + 0x20], 3
lea ecx, [esi + 0x11c]
call fcn.0042407f
lea ecx, [esi + 0x118]
mov byte [esp + 0x20], 2
call fcn.0042407f
lea ecx, [esi + 0x114]
mov byte [esp + 0x20], 1
call fcn.0042407f
lea ecx, [esi + 0xbc]
mov byte [esp + 0x20], bl
call fcn.00401440
mov ecx, esi
mov dword [esp + 0x20], 0xffffffff
call fcn.00427b3f
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret