Function at 0x419d30
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x864
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4721d8
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x419fa0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4721c0
push esi
call edi
push 0x4721a8
push esi
mov dword [0x476ba0], eax
call edi
push 0x472190
push esi
mov dword [0x476b9c], eax
call edi
push 0x472178
push esi
mov dword [0x476b98], eax
call edi
push 0x47215c
push esi
mov dword [0x476b94], eax
call edi
push 0x472140
push esi
mov dword [0x476b90], eax
call edi
push 0x472138
push esi
mov dword [0x476b8c], eax
call edi
mov dword [0x476b88], eax
lea eax, [esp + 0x68]
push 0x472124
push eax
call dword [0x476ba0]
mov ecx, dword [esp + 0x874]
lea edx, [esp + 0x60]
push ecx
push edx
call dword [0x476ba0]
lea ecx, [esp + 0x40]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x6c]
push 1
push edx
mov dword [esp + 0x4c], 0x18
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], 0x40
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
call dword [0x476b98]
test eax, eax
jne 0x419fa0
lea eax, [esp + 0x58]
push 0x472108
push eax
call dword [0x476ba0]
push 0x400
push 2
mov word [esp + 0x20], bx
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x419fa0
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov word [esp + 0x1a], 0x400
lea ecx, [esp + 0x20]
lea edx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ebx
push 1
lea eax, [esp + 0x80]
push 0x800
push eax
push ecx
call dword [0x476b94]
cmp eax, ebx
jne 0x419fa0
lea edx, [esp + 0x58]
push 1
lea eax, [esp + 0x7c]
push edx
push eax
call dword [0x476b9c]
test al, al
je 0x419e70
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x74]
push 1
push ecx
mov dword [esp + 0x34], 0x18
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x3c], edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [0x476b90]
test eax, eax
jne 0x419fa0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push ebx
push edx
push eax
call dword [0x476b8c]
test eax, eax
jne 0x419f79
lea ecx, [esp + 0x60]
push 1
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [0x476b9c]
test al, al
je 0x419f49
mov eax, dword [esp + 0x74]
push eax
call esi
add esp, 4
cmp eax, 2
jne 0x419f49
mov ecx, dword [esp + 0x74]
mov ax, word [ecx]
cmp ax, 0x41
jb 0x419f49
cmp ax, 0x5a
ja 0x419f49
cmp word [ecx + 2], 0x3a
je 0x419f86
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
and ecx, 0xffff
xor eax, eax
shl ecx, 1
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push eax
call dword [0x476b88]
jmp 0x419e70
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x476b88]
jmp 0x419fa0
mov edx, dword [esp + 0x878]
push ecx
push edx
mov dword [esp + 0x1c], 1
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, dword [esp + 0xc]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x419fb2
push eax
call dword [0x476b88]
mov eax, dword [esp + 8]
add esp, 0x864
ret