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

Disassembly:
push 0xffffffffffffffff
push 0x643e0d
mov eax, dword fs:[0]
push eax
sub esp, 0x1fc
mov eax, dword [0x699fe8]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x699fe8]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, 0x10
cmp dword [esi + 0x18], ebp
mov dword [esp + 0x2c], esi
jb 0x5d7de7
mov eax, dword [esi + 4]
lea ebx, [esi + 4]
mov dword [esp + 0x18], ebx
jmp 0x5d7df0
lea eax, [esi + 4]
mov dword [esp + 0x18], eax
mov ebx, eax
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 0x5d7e9a
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp dword [esi + 0x18], ebp
mov edi, eax
jb 0x5d7e24
mov eax, dword [ebx]
jmp 0x5d7e26
mov eax, ebx
push 0x676a98
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x5d7ec4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5d7ec4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x5d7ec4
xor eax, eax
lea ecx, [esp + 0x20]
mov ebx, 0x75b414
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.005d8ee0
mov edi, ebx
call fcn.0059bc30
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], esi
jmp 0x5d7f56
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 + 0x48], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebp, eax
test ebp, ebp
jne 0x5d7ecb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x5d841a
push esi
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x5d7ef4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
xor al, al
jmp 0x5d841a
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x75b418]
mov ecx, dword [eax + 4]
lea ebx, [eax + 4]
push ecx
push eax
lea esi, [esp + 0x28]
call fcn.005d93e0
mov ecx, 0x75b414
mov esi, eax
call fcn.005d9420
mov dword [ebx], esi
mov eax, dword [esi + 4]
mov dword [eax], esi
mov eax, dword [0x75b418]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x5d7f49
call fcn.0061c63f
cmp esi, dword [0x75b418]
jne 0x5d7f49
call fcn.0061c63f
mov edx, dword [esp + 0x1c]
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edx
mov eax, dword [0x75b418]
mov esi, dword [eax + 4]
cmp esi, eax
jne 0x5d7f74
call fcn.0061c63f
cmp esi, dword [0x75b418]
jne 0x5d7f74
call fcn.0061c63f
xor eax, eax
add esi, 8
mov dword [esp + 0x1c], esi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], eax
mov byte [esp + 0x70], al
mov ebp, dword [esp + 0x2c]
mov ebx, ebp
lea edi, [esp + 0x40]
mov dword [esp + 0x218], eax
call fcn.005d7bb0
push eax
lea eax, [esp + 0xc4]
push eax
lea edi, [esp + 0x70]
mov byte [esp + 0x220], 1
call fcn.005d90f0
push eax
push 0x75b420
lea ebx, [esp + 0x64]
mov byte [esp + 0x220], 2
call fcn.005d8f10
mov ecx, dword [eax]
mov edi, dword [eax + 4]
lea esi, [esp + 0xc0]
mov dword [esp + 0x20], ecx
call fcn.005d8480
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x5d8007
mov edx, dword [esp + 0x44]
push edx
call fcn.0061c19a
add esp, 4
xor ebx, ebx
mov dword [esp + 0x218], 0xffffffff
cmp dword [esp + 0x84], esi
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
jb 0x5d803a
mov eax, dword [esp + 0x70]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x20], ebx
jne 0x5d8045
call fcn.0061c63f
mov ecx, dword [esp + 0x20]
cmp edi, dword [ecx + 4]
jne 0x5d8053
call fcn.0061c63f
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [edi + 0x2c]
mov dword [edi + 0x28], edx
call fcn.00403e20
mov eax, dword [esp + 0x30]
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], eax
cmp dword [ebp + 0x18], esi
jb 0x5d807d
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
jmp 0x5d8081
mov eax, dword [esp + 0x18]
mov edx, dword [0x75b410]
push 0x658580
push eax
mov eax, dword [edx + 4]
mov ecx, 0x75b410
call eax
mov ebp, eax
cmp ebp, ebx
je 0x5d7ec4
mov edx, dword [0x75b410]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 4
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x75b410
mov dword [esp + 0x48], ebx
call eax
cmp dword [esp + 0x38], 0xbac04ac0
mov edx, dword [0x75b410]
push ebp
je 0x5d80e1
mov eax, dword [edx + 8]
mov ecx, 0x75b410
call eax
xor al, al
jmp 0x5d841a
mov eax, dword [edx + 0x14]
push 1
push 4
lea ecx, [esp + 0x48]
push ecx
mov ecx, 0x75b410
mov dword [esp + 0x4c], ebx
call eax
cmp dword [esp + 0x3c], ebx
mov edx, dword [0x75b410]
push ebp
ja 0x5d80d0
mov eax, dword [edx + 0x14]
push 1
push 1
lea ecx, [esp + 0x22]
push ecx
mov ecx, 0x75b410
mov dword [esp + 0x40], ebx
mov byte [esp + 0x26], bl
call eax
test byte [esp + 0x16], 0x80
jne 0x5d837c
jmp 0x5d8130
cmp eax, ebx
je 0x5d837c
mov edx, dword [0x75b410]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 1
lea ecx, [esp + 0x23]
push ecx
mov ecx, 0x75b410
mov byte [esp + 0x27], bl
call eax
movzx ecx, byte [esp + 0x17]
mov eax, dword [0x75b410]
push ebp
push ecx
push 1
lea edx, [esp + 0x118]
push edx
mov edx, dword [eax + 0x14]
mov ecx, 0x75b410
call edx
movzx eax, byte [esp + 0x17]
mov edx, dword [0x75b410]
push ebp
push 1
push 4
lea ecx, [esp + 0x24]
mov byte [esp + eax + 0x118], bl
mov eax, dword [edx + 0x14]
push ecx
mov ecx, 0x75b410
mov dword [esp + 0x28], ebx
call eax
mov edx, dword [0x75b410]
mov eax, dword [edx + 0x14]
push ebp
push 1
push 8
lea ecx, [esp + 0x68]
push ecx
mov ecx, 0x75b410
call eax
lea ecx, [esp + 0x10c]
push ecx
lea ecx, [esp + 0x44]
call fcn.00404450
mov dword [esp + 0x218], 3
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], ebx
mov byte [esp + 0x70], bl
lea ebx, [esp + 0x40]
lea edi, [esp + 0x98]
mov byte [esp + 0x218], 4
call fcn.005d7bb0
push eax
lea edx, [esp + 0xc4]
push edx
lea edi, [esp + 0x70]
mov byte [esp + 0x220], 5
call fcn.005d90f0
push eax
push 0x75b420
lea ebx, [esp + 0xbc]
mov byte [esp + 0x220], 6
call fcn.005d8f10
mov ebx, dword [eax]
mov edi, dword [eax + 4]
lea esi, [esp + 0xc0]
call fcn.005d8480
mov esi, 0x10
cmp dword [esp + 0xb0], esi
jb 0x5d8267
mov eax, dword [esp + 0x9c]
push eax
call fcn.0061c19a
add esp, 4
cmp dword [esp + 0x84], esi
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
jb 0x5d829b
mov ecx, dword [esp + 0x70]
push ecx
call fcn.0061c19a
add esp, 4
mov dword [esp + 0x218], 0xffffffff
cmp dword [esp + 0x58], esi
mov dword [esp + 0x84], 0xf
mov dword [esp + 0x80], 0
mov byte [esp + 0x70], 0
jb 0x5d82d4
mov edx, dword [esp + 0x44]
push edx
call fcn.0061c19a
add esp, 4
test ebx, ebx
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jne 0x5d82f2
call fcn.0061c63f
cmp edi, dword [ebx + 4]
jne 0x5d82fc
call fcn.0061c63f
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x28], eax
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x5d8310
sub eax, edx
push eax
lea ecx, [esp + 0x110]
push ecx
lea ecx, [edi + 0x2c]
call fcn.00404330
mov eax, dword [esp + 0x30]
mov dword [edi + 0x50], eax
mov edx, dword [esp + 0x18]
mov dword [edi + 0x54], edx
mov ecx, dword [esp + 0x5c]
mov dword [edi + 0x48], ecx
mov edx, dword [esp + 0x60]
mov dword [edi + 0x4c], edx
add eax, dword [esp + 0x18]
mov edx, dword [0x75b410]
push ebp
push 1
mov dword [esp + 0x38], eax
push 1
lea eax, [esp + 0x22]
push eax
mov eax, dword [edx + 0x14]
mov ecx, 0x75b410
mov byte [esp + 0x26], 0
call eax
xor ebx, ebx
test byte [esp + 0x16], 0x80
je 0x5d8130
mov edx, dword [0x75b410]
mov eax, dword [edx + 0x10]
push ebp
mov ecx, 0x75b410
call eax
mov ecx, dword [0x75b424]
mov edi, dword [ecx]
mov esi, 0x75b420
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
jmp 0x5d83b0
cmp esi, ebx
mov edx, dword [0x75b424]
mov dword [esp + 0x34], edx
je 0x5d83c6
cmp esi, 0x75b420
je 0x5d83cb
call fcn.0061c63f
cmp edi, dword [esp + 0x34]
je 0x5d8407
cmp esi, ebx
jne 0x5d83da
call fcn.0061c63f
cmp edi, dword [esi + 4]
jne 0x5d83e4
call fcn.0061c63f
mov eax, dword [esp + 0x1c]
cmp dword [edi + 0x28], eax
jne 0x5d83f4
mov ecx, dword [esp + 0x2c]
add dword [edi + 0x50], ecx
lea esi, [esp + 0x20]
call fcn.005d9760
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
jmp 0x5d83b0
mov edx, dword [0x75b410]
mov eax, dword [edx + 8]
push ebp
mov ecx, 0x75b410
call eax
mov al, 1
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0061efd1
add esp, 0x208
ret