Function at 0x419290
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 0x244
mov eax, dword [0x447724]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x46]
push ebx
push eax
mov esi, ecx
mov word [esp + 0x4c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x44]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x40]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0x43fba8
mov dword [esp + 0x10], 0x43fb90
mov dword [esp + 0x18], 0x43fbdc
mov dword [esp + 0x1c], edx
mov esi, 0x5f8
mov dword [esp + 8], ebx
mov eax, dword fs:[0x30]
mov dword [esp + 8], eax
push ebp
xor ecx, ecx
push edi
mov edi, edi
mov eax, dword [esp + ecx + 0x14]
lea edi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x419317
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [esp + ecx + 0x2c], eax
add ecx, 4
add esi, eax
cmp ecx, 0x14
jb 0x419310
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push ebx
push eax
mov dword [0x44e240], eax
call sub.MSVCR80.dll_memset
mov eax, dword [0x44e240]
mov dword [eax], esi
mov ecx, dword [0x44e240]
mov dword [ecx + 4], ebx
mov edx, dword [0x44e240]
mov dword [edx + 8], ebx
mov eax, dword [0x44e240]
add esp, 0xc
mov dword [eax + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0x44e240]
mov dword [ecx + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edx, dword [0x44e240]
mov dword [edx + 0x14], eax
mov eax, dword [0x44e240]
mov dword [eax + 0x18], ebx
mov ecx, dword [0x44e240]
mov dword [ecx + 0x1c], ebx
mov edx, dword [0x44e240]
mov eax, dword [esp + 0x10]
mov dword [edx + 0x28], eax
mov ecx, dword [0x44e240]
mov dword [ecx + 0x2c], 0x804
mov edx, dword [0x44e240]
mov dword [edx + 0x20], ebx
mov eax, dword [0x44e240]
mov dword [eax + 0x24], ebx
mov ecx, dword [0x44e240]
mov ax, word [esp + 0x258]
mov dword [ecx + 0x34c], ebx
mov edx, dword [0x44e240]
mov word [edx + 0x5e8], ax
mov ecx, dword [0x44e240]
mov dx, word [esp + 0x25c]
mov word [ecx + 0x5ea], dx
mov eax, dword [0x44e240]
mov ecx, dword [esp + 0x260]
mov dword [eax + 0x5ec], ecx
mov edx, dword [0x44e240]
mov eax, 1
mov byte [edx + 0x5f0], al
mov ecx, dword [0x44e240]
mov byte [ecx + 0x5f1], al
mov edx, dword [0x44e240]
mov dword [edx + 0x558], eax
mov edi, dword [0x44e240]
add edi, 0x5f8
xor esi, esi
mov ebp, dword [esp + esi + 0x2c]
mov eax, dword [esp + esi + 0x14]
push ebp
push eax
push edi
call sub.MSVCR80.dll_memcpy
mov dword [esp + esi + 0x20], edi
add esi, 4
add esp, 0xc
add edi, ebp
cmp esi, 0x14
jb 0x419451
mov eax, dword [0x44e240]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, eax
mov dword [eax + 0x5d4], ecx
mov ecx, dword [0x44e240]
sub edx, eax
mov dword [ecx + 0x5d8], edx
mov ecx, dword [0x44e240]
mov edx, dword [esp + 0x1c]
sub edx, eax
mov dword [ecx + 0x5dc], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [0x44e240]
sub edx, eax
mov dword [ecx + 0x5e0], edx
mov edx, dword [esp + 0x24]
sub edx, eax
mov eax, dword [0x44e240]
push 2
mov dword [eax + 0x5e4], edx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push fcn.004197d0
call esi
lea ecx, [esp + 0x28]
push ecx
push 5
lea edx, [esp + 0x48]
push edx
push esi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x50], 0x33
mov byte [esp + 0x51], 0xc0
mov byte [esp + 0x52], 0xc2
mov byte [esp + 0x53], 4
mov byte [esp + 0x54], bl
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push str.AddVectoredExceptionHandler
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
pop edi
pop ebp
je 0x41953a
push 0x419a10
push ebx
call eax
push 0x44c25c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x248]
pop esi
pop ebx
xor ecx, esp
call fcn.004351a6
add esp, 0x244
ret