Function at 0x5d8410
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x64d04d
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x6af168]
xor eax, esp
mov dword [esp + 0x390], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6af168]
xor eax, esp
push eax
lea eax, [esp + 0x3a8]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, 0x10
cmp dword [esi + 0x18], ebx
mov dword [esp + 0x20], esi
jb 0x5d8460
mov eax, dword [esi + 4]
jmp 0x5d8463
lea eax, [esi + 4]
push 0
push 0
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
push 0
jne 0x5d850c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [esi + 0x18], ebx
mov edi, eax
lea eax, [esi + 4]
jb 0x5d8498
mov eax, dword [eax]
push 0x683fe4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5d8536
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5d8536
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5d8536
xor eax, eax
lea ecx, [esp + 0x28]
mov ebx, 0x6f2c78
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.005d94b0
mov edi, ebx
call fcn.0053aad0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
jmp 0x5d85c8
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
push esi
push 0
push 2
push 0
push edi
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x5d853d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x5d8aca
push esi
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x24], eax
jne 0x5d8566
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
xor al, al
jmp 0x5d8aca
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [0x6f2c7c]
mov ecx, dword [eax + 4]
lea ebx, [eax + 4]
push ecx
push eax
lea esi, [esp + 0x30]
call fcn.005d99b0
mov ecx, 0x6f2c78
mov esi, eax
call fcn.005d99f0
mov dword [ebx], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [0x6f2c7c]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x5d85bb
call fcn.0062492b
cmp esi, dword [0x6f2c7c]
jne 0x5d85bb
call fcn.0062492b
mov edx, dword [esp + 0x24]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edx
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x5d85da
mov ecx, dword [eax + 4]
add eax, 4
jmp 0x5d85dd
lea ecx, [eax + 4]
lea eax, [esp + 0x2a4]
push eax
call fcn.005d81f0
mov eax, dword [0x6f2c7c]
mov esi, dword [eax + 4]
add esp, 4
cmp esi, eax
jne 0x5d860b
call fcn.0062492b
cmp esi, dword [0x6f2c7c]
jne 0x5d860b
call fcn.0062492b
lea ecx, [esp + 0x2a4]
push ecx
lea ebp, [esi + 8]
lea ecx, [esp + 0xe8]
mov dword [esp + 0x28], ebp
call fcn.00402130
xor eax, eax
mov dword [esp + 0x3b0], eax
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], eax
mov byte [esp + 0xbc], al
lea edx, [esp + 0xe4]
push edx
lea eax, [esp + 0x110]
push eax
lea edi, [esp + 0xbc]
mov byte [esp + 0x3b8], 1
call fcn.005d96c0
push eax
push 0x6f2c84
lea ebx, [esp + 0x30]
mov byte [esp + 0x3b8], 2
call fcn.005d94e0
mov ecx, dword [eax]
mov edi, dword [eax + 4]
lea esi, [esp + 0x10c]
mov dword [esp + 0x34], ecx
call fcn.005d8b30
mov esi, 0x10
cmp dword [esp + 0xd0], esi
jb 0x5d86b6
mov edx, dword [esp + 0xbc]
push edx
call fcn.0062493b
add esp, 4
xor ebx, ebx
mov dword [esp + 0x3b0], 0xffffffff
cmp dword [esp + 0xfc], esi
mov dword [esp + 0xd0], 0xf
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
jb 0x5d86f5
mov eax, dword [esp + 0xe8]
push eax
call fcn.0062493b
add esp, 4
mov esi, dword [esp + 0x34]
cmp esi, ebx
jne 0x5d8702
call fcn.0062492b
cmp edi, dword [esi + 4]
jne 0x5d870c
call fcn.0062492b
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebx
push ecx
lea ecx, [edi + 0x2c]
mov dword [edi + 0x28], ebp
call fcn.00401d10
mov edx, dword [esp + 0x1c]
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], edx
mov edx, dword [0x6f2c74]
push 0x6792dc
lea eax, [esp + 0x2a8]
push eax
mov eax, dword [edx + 4]
mov ecx, 0x6f2c74
call eax
mov ebp, eax
cmp ebp, ebx
je 0x5d8536
mov edx, dword [0x6f2c74]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 4
lea ecx, [esp + 0x4c]
push ecx
mov ecx, 0x6f2c74
mov dword [esp + 0x50], ebx
call eax
cmp dword [esp + 0x40], 0xbac04ac0
mov edx, dword [0x6f2c74]
push ebp
je 0x5d8790
mov eax, dword [edx + 8]
mov ecx, 0x6f2c74
call eax
xor al, al
jmp 0x5d8aca
mov eax, dword [edx + 0x14]
push 1
push 4
lea ecx, [esp + 0x48]
push ecx
mov ecx, 0x6f2c74
mov dword [esp + 0x4c], ebx
call eax
cmp dword [esp + 0x3c], ebx
mov edx, dword [0x6f2c74]
push ebp
ja 0x5d877f
mov eax, dword [edx + 0x14]
push 1
push 1
lea ecx, [esp + 0x26]
push ecx
mov ecx, 0x6f2c74
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x2a], bl
call eax
test byte [esp + 0x1a], 0x80
jne 0x5d8a2c
lea ebx, [ebx]
cmp eax, ebx
je 0x5d8a2c
mov edx, dword [0x6f2c74]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 1
lea ecx, [esp + 0x27]
push ecx
mov ecx, 0x6f2c74
mov byte [esp + 0x2b], bl
call eax
movzx ecx, byte [esp + 0x1b]
mov eax, dword [0x6f2c74]
push ebp
push ecx
push 1
lea edx, [esp + 0x1b0]
push edx
mov edx, dword [eax + 0x14]
mov ecx, 0x6f2c74
call edx
movzx eax, byte [esp + 0x1b]
mov edx, dword [0x6f2c74]
push ebp
push 1
push 4
lea ecx, [esp + 0x2c]
mov byte [esp + eax + 0x1b0], bl
mov eax, dword [edx + 0x14]
push ecx
mov ecx, 0x6f2c74
mov dword [esp + 0x30], ebx
call eax
mov edx, dword [0x6f2c74]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 8
lea ecx, [esp + 0x50]
push ecx
mov ecx, 0x6f2c74
call eax
lea ecx, [esp + 0x1a4]
push ecx
lea ecx, [esp + 0x50]
call fcn.00402130
mov dword [esp + 0x3b0], 3
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
lea ebx, [esp + 0x4c]
lea edi, [esp + 0x68]
mov byte [esp + 0x3b0], 4
call fcn.004e6590
push eax
lea edx, [esp + 0x15c]
push edx
lea edi, [esp + 0x8c]
mov byte [esp + 0x3b8], 5
call fcn.005d96c0
push eax
push 0x6f2c84
lea ebx, [esp + 0x108]
mov byte [esp + 0x3b8], 6
call fcn.005d94e0
mov ebx, dword [eax]
mov edi, dword [eax + 4]
lea esi, [esp + 0x158]
call fcn.005d8b30
mov esi, 0x10
cmp dword [esp + 0x80], esi
jb 0x5d8917
mov eax, dword [esp + 0x6c]
push eax
call fcn.0062493b
add esp, 4
cmp dword [esp + 0xa0], esi
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], 0
mov byte [esp + 0x6c], 0
jb 0x5d8948
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0062493b
add esp, 4
mov dword [esp + 0x3b0], 0xffffffff
cmp dword [esp + 0x64], esi
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
jb 0x5d8984
mov edx, dword [esp + 0x50]
push edx
call fcn.0062493b
add esp, 4
test ebx, ebx
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jne 0x5d89a2
call fcn.0062492b
cmp edi, dword [ebx + 4]
jne 0x5d89ac
call fcn.0062492b
mov eax, dword [esp + 0x24]
mov dword [edi + 0x28], eax
lea eax, [esp + 0x1a4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5d89c0
sub eax, edx
push eax
lea ecx, [esp + 0x1a8]
push ecx
lea ecx, [edi + 0x2c]
call fcn.00402300
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x50], eax
mov edx, dword [esp + 0x20]
mov dword [edi + 0x54], edx
mov ecx, dword [esp + 0x44]
mov dword [edi + 0x48], ecx
mov edx, dword [esp + 0x48]
mov dword [edi + 0x4c], edx
add eax, dword [esp + 0x20]
mov edx, dword [0x6f2c74]
push ebp
push 1
mov dword [esp + 0x24], eax
push 1
lea eax, [esp + 0x26]
push eax
mov eax, dword [edx + 0x14]
mov ecx, 0x6f2c74
mov byte [esp + 0x2a], 0
call eax
xor ebx, ebx
test byte [esp + 0x1a], 0x80
je 0x5d87e0
mov edx, dword [0x6f2c74]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, 0x6f2c74
call eax
mov ecx, dword [0x6f2c88]
mov edi, dword [ecx]
mov esi, 0x6f2c84
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edi
jmp 0x5d8a60
cmp esi, ebx
mov edx, dword [0x6f2c88]
mov dword [esp + 0x2c], edx
je 0x5d8a76
cmp esi, 0x6f2c84
je 0x5d8a7b
call fcn.0062492b
cmp edi, dword [esp + 0x2c]
je 0x5d8ab7
cmp esi, ebx
jne 0x5d8a8a
call fcn.0062492b
cmp edi, dword [esi + 4]
jne 0x5d8a94
call fcn.0062492b
mov eax, dword [esp + 0x24]
cmp dword [edi + 0x28], eax
jne 0x5d8aa4
mov ecx, dword [esp + 0x1c]
add dword [edi + 0x50], ecx
lea esi, [esp + 0x34]
call fcn.005d9d30
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
jmp 0x5d8a60
mov edx, dword [0x6f2c74]
mov eax, dword [edx + 8]
push ebp
mov ecx, 0x6f2c74
call eax
mov al, 1
mov ecx, dword [esp + 0x3a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x390]
xor ecx, esp
call fcn.00624940
add esp, 0x3a0
ret