Function at 0x4322c0
Capabilities:
Extract resource via kernel32 functions
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a0ec1
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x410], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x42c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x444]
xor ebx, ebx
cmp ecx, ebx
jne 0x43265d
mov edx, dword [0x4cc358]
or edi, 0xffffffff
push edi
lea eax, [esp + 0x64]
xor ecx, ecx
push edx
lea esi, [esp + 0x64]
mov dword [esp + 0x64], eax
mov word [esp + 0x68], cx
call fcn.00402160
mov dword [esp + 0x434], ebx
mov eax, dword [0x4cc3e0]
cmp word [eax], bx
jne 0x432416
mov eax, dword [esp + 0x43c]
cmp eax, ebx
je 0x432358
push eax
mov eax, esi
push eax
call fcn.00402020
mov ecx, dword [esp + 0x5c]
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, edi
jne 0x43239e
mov dword [esp + 0x434], edi
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
je 0x4326ca
push eax
call fcn.0048836e
add esp, 4
jmp 0x4326ca
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
jne 0x4323d1
mov dword [esp + 0x434], edi
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x60]
cmp eax, ecx
je 0x4326ca
push eax
call fcn.0048836e
add esp, 4
jmp 0x4326ca
push esi
mov dword [esp + 0x20], ebx
call fcn.0048690e
add esp, 4
push ebx
lea edx, [esp + 0x20]
push edx
push esi
mov edi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x1c], esi
je 0x43263b
push edi
call fcn.00487d04
add esp, 4
mov dword [esp + 0x434], 0xffffffff
jmp 0x4323b3
push eax
lea edx, [esp + 0x60]
push edx
call fcn.00402020
mov edx, dword [0x4cc468]
push edi
lea eax, [esp + 0x174]
xor ecx, ecx
push edx
lea esi, [esp + 0x174]
mov dword [esp + 0x174], eax
mov word [esp + 0x178], cx
call fcn.00402160
mov ebp, dword [0x511380]
cmp ebp, ebx
jne 0x432488
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0x170]
cmp eax, ecx
je 0x432472
push eax
call fcn.0048836e
add esp, 4
mov dword [esp + 0x434], edi
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
jmp 0x4323bd
mov edx, dword [esp + 0x43c]
push edi
lea eax, [esp + 0xec]
xor ecx, ecx
push edx
lea esi, [esp + 0xec]
mov dword [esp + 0x24], ebx
mov dword [esp + 0xec], eax
mov word [esp + 0xf0], cx
call fcn.00402160
push 0x4b08ac
mov eax, esi
push eax
mov ecx, 0x4b08a8
mov byte [esp + 0x43c], 2
call fcn.00402610
cmp dword [ebp], 1
je 0x4324e5
mov dword [0x5113b4], 0x80000
jmp 0x43250b
mov eax, dword [esp + 0xe4]
mov esi, dword [ebp + 4]
lea ecx, [esp + 0x1f4]
push ecx
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0041f7a0
mov dword [0x5113b4], eax
cmp eax, ebx
je 0x43254a
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0xe8]
cmp eax, ecx
je 0x432526
push eax
call fcn.0048836e
add esp, 4
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x170]
cmp eax, edx
je 0x4323ac
push eax
call fcn.0048836e
add esp, 4
jmp 0x4323ac
mov esi, dword [esp + 0x420]
cmp esi, ebx
jne 0x432579
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0xe8]
cmp eax, edx
je 0x432457
push eax
call fcn.0048836e
add esp, 4
jmp 0x432457
push esi
call fcn.0048690e
add esp, 4
cmp dword [ebp], 1
mov edi, eax
je 0x432596
mov dword [0x5113b4], 0x80000
jmp 0x4325b6
mov eax, dword [esp + 0x1c]
mov ebp, dword [ebp + 4]
push esi
push edi
push eax
push ebp
call fcn.0041f880
mov dword [0x5113b4], eax
cmp eax, ebx
je 0x432605
cmp eax, 0x600
je 0x432605
push edi
call fcn.00487d04
mov eax, dword [esp + 0xe8]
lea ecx, [esp + 0xec]
add esp, 4
cmp eax, ecx
je 0x4325da
push eax
call fcn.0048836e
add esp, 4
mov eax, dword [esp + 0x16c]
lea edx, [esp + 0x170]
cmp eax, edx
je 0x4325f5
push eax
call fcn.0048836e
add esp, 4
mov dword [esp + 0x434], 0xffffffff
jmp 0x4323b3
mov eax, dword [esp + 0xe4]
lea edx, [esp + 0xe8]
cmp eax, edx
je 0x432620
push eax
call fcn.0048836e
add esp, 4
mov eax, dword [esp + 0x16c]
lea ecx, [esp + 0x170]
cmp eax, ecx
je 0x43263b
push eax
call fcn.0048836e
add esp, 4
mov dword [esp + 0x434], 0xffffffff
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x60]
cmp eax, edx
je 0x4326c6
push eax
call fcn.0048836e
add esp, 4
jmp 0x4326c6
cmp eax, ebx
jne 0x432666
call fcn.00404900
mov edi, eax
mov eax, dword [esp + 0x43c]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x4326ca
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
push esi
cmp ebp, ebx
jne 0x432695
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4326ca
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp esi, ebx
je 0x4326ca
push esi
call fcn.0048690e
add esp, 4
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004877d0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, ebx
jne 0x432743
mov ecx, dword [esp + 0x43c]
push ebx
push 0x80
push 3
push ebx
push 1
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x43273c
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, ebx
je 0x43273c
push esi
mov dword [esp + 0x30], ebx
call fcn.0048690e
add esp, 4
push ebx
lea edx, [esp + 0x30]
push edx
push esi
mov edi, eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], esi
je 0x432738
push edi
call fcn.00487d04
add esp, 4
xor eax, eax
jmp 0x432915
cmp edi, ebx
jne 0x432743
xor eax, eax
jmp 0x432915
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
lea edx, [esp + 0x34]
mov ecx, edi
call fcn.004239e0
add esp, 0xc
mov esi, eax
push edi
mov dword [esp + 0x24], esi
call fcn.00487d04
add esp, 4
cmp esi, ebx
je 0x43273c
push 0x2c
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.00487630
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x30]
add esp, 0xc
push 0
mov ebp, edi
mov ecx, 1
imul ebp, esi
push 0
mov word [esp + 0x44], cx
lea ecx, [esp + 0x20]
push ecx
mov edx, 0x20
mov eax, esi
neg eax
mov word [esp + 0x4a], dx
push 0
lea edx, [esp + 0x40]
mov dword [esp + 0x48], eax
push edx
lea eax, [ebp*4]
mov dword [esp + 0x54], ebx
push 0
mov dword [esp + 0x48], 0x28
mov dword [esp + 0x4c], edi
mov dword [esp + 0x5c], eax
xor bl, bl
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x43273c
xor ecx, ecx
test ebp, ebp
jle 0x4328d1
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
add esi, 3
mov dl, byte [esi]
mov byte [eax + ecx*4 + 3], dl
mov edi, dword [esp + 0x18]
cmp byte [edi + ecx*4 + 3], 0xff
jae 0x43286a
movzx eax, byte [esi]
movzx edx, byte [esi - 1]
imul edx, eax
mov eax, 0x80808081
mul edx
shr edx, 7
mov byte [edi + ecx*4], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 2]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 1], dl
movzx eax, byte [esi]
movzx edx, byte [esi - 3]
imul edx, eax
mov eax, 0x80808081
mul edx
mov eax, dword [esp + 0x18]
shr edx, 7
mov byte [eax + ecx*4 + 2], dl
mov bl, 1
jmp 0x432888
mov dl, byte [esi - 1]
mov byte [edi + ecx*4], dl
movzx eax, byte [esi - 2]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 1], al
movzx eax, byte [esi - 3]
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], al
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x440]
cmp dword [eax + ecx*4], edx
jne 0x4328bd
mov byte [eax + ecx*4], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 1], 0
mov edx, dword [esp + 0x18]
mov byte [edx + ecx*4 + 2], 0
mov eax, dword [esp + 0x18]
mov byte [eax + ecx*4 + 3], 0
mov eax, dword [esp + 0x18]
mov bl, 1
inc ecx
add esi, 4
cmp ecx, ebp
jl 0x432806
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0048836e
add esp, 4
push 0xa0
call fcn.004872c3
xor edx, edx
add esp, 4
cmp eax, edx
je 0x4328fe
lea ecx, [eax + 0x1c]
xor ebp, ebp
mov dword [eax + 0x18], ecx
mov word [ecx], bp
jmp 0x432900
xor eax, eax
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], esi
mov byte [eax + 0x14], bl
mov ecx, dword [esp + 0x42c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00486dc0
add esp, 0x424
ret