Function at 0x415750
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x44a5a8]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
movaps xmm0, xmmword [0x43b420]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x80]
push ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x3c], ebx
mov ebx, dword [0x44a008]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x5c], 6
mov dword [esp + 0x60], 0x474e5089
mov dword [esp + 0x64], 0xa1a0a0d
push esi
push edi
movups xmmword [esp + 0x54], xmm0
test ebp, ebp
jne 0x4157c8
mov ebp, edx
imul ebp, eax
mov dword [esp + 0x7c], ebp
or esi, 0xffffffff
cmp ebx, 5
cmovge ebx, esi
mov esi, edx
imul esi, eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], esi
lea eax, [esi + 1]
mov dword [esp + 0x4c], eax
imul eax, ecx
push eax
mov dword [esp + 0x54], eax
call fcn.0041d0fe
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
test edi, edi
je 0x415817
push esi
call fcn.0041d0fe
mov esi, eax
add esp, 4
test esi, esi
jne 0x41582c
push edi
call fcn.0041d0e3
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00418b49
add esp, 0x64
ret
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test edx, edx
jle 0x415a1f
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x10]
cmp ebx, 0xffffffff
jle 0x415869
push esi
push dword [esp + 0x44]
push dword [esp + 0x24]
push ecx
push edx
push edi
push ebp
push dword [esp + 0x3c]
call fcn.00414660
add esp, 0x20
jmp 0x4159e1
xor ebx, ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x3c], 0x7fffffff
mov dword [esp + 0x38], ebx
nop
push esi
push ebx
push dword [esp + 0x24]
push ecx
push edx
push dword [esp + 0x24]
push ebp
push dword [esp + 0x3c]
call fcn.00414660
mov edx, dword [esp + 0x48]
xor edi, edi
add esp, 0x20
mov dword [esp + 0x34], edi
xor ecx, ecx
test edx, edx
jle 0x415932
cmp edx, 8
jb 0x415932
cmp dword [0x44b8a0], 2
jl 0x415932
mov eax, edx
and eax, 0x80000007
jns 0x4158cd
dec eax
or eax, 0xfffffff8
inc eax
mov edi, edx
xorps xmm1, xmm1
sub edi, eax
xorps xmm2, xmm2
nop word [eax + eax]
movd xmm0, dword [ecx + esi]
pmovsxbd xmm0, xmm0
pabsd xmm0, xmm0
paddd xmm1, xmm0
movd xmm0, dword [ecx + esi + 4]
pmovsxbd xmm0, xmm0
add ecx, 8
pabsd xmm0, xmm0
paddd xmm2, xmm0
cmp ecx, edi
jl 0x4158e0
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd edi, xmm1
mov dword [esp + 0x34], edi
xor ebx, ebx
xor ebp, ebp
cmp ecx, edx
jge 0x415982
mov eax, edx
sub eax, ecx
cmp eax, 2
jl 0x415972
lea eax, [edx - 1]
mov edi, eax
movsx eax, byte [ecx + esi]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
movsx eax, byte [ecx + esi + 1]
cdq
add ecx, 2
xor eax, edx
sub eax, edx
add ebp, eax
mov eax, ecx
cmp ecx, edi
jl 0x415948
mov edi, dword [esp + 0x34]
cmp eax, dword [esp + 0x28]
jge 0x41597d
movsx eax, byte [ecx + esi]
cdq
xor eax, edx
sub eax, edx
add edi, eax
lea eax, [ebx + ebp]
add edi, eax
mov ebp, dword [esp + 0x3c]
cmp edi, ebp
mov ebx, dword [esp + 0x38]
mov eax, ebx
cmovge eax, dword [esp + 0x24]
inc ebx
mov ecx, dword [esp + 0x18]
cmp edi, ebp
mov edx, dword [esp + 0x14]
cmovge edi, ebp
mov dword [esp + 0x24], eax
mov ebp, dword [esp + 0x7c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], edi
cmp ebx, 5
jl 0x415880
cmp ebx, eax
je 0x4159dd
push esi
push eax
push dword [esp + 0x24]
push ecx
mov ecx, edx
push ecx
push dword [esp + 0x24]
push ebp
push dword [esp + 0x3c]
call fcn.00414660
mov ebx, dword [esp + 0x44]
add esp, 0x20
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push dword [esp + 0x28]
push esi
mov byte [eax], bl
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00419e50
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ebx, dword [esp + 0x4c]
inc ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x18], ecx
cmp ecx, edx
jl 0x415846
mov edi, dword [esp + 0x30]
push esi
call fcn.0041d0e3
push dword [0x44a004]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x5c]
push edi
call fcn.00415ba0
push edi
mov ebp, eax
call fcn.0041d0e3
add esp, 0x18
test ebp, ebp
je 0x415817
mov ebx, dword [esp + 0x30]
lea esi, [ebx + 0x39]
push esi
call fcn.0041d0fe
mov edi, eax
add esp, 4
test edi, edi
je 0x415817
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x6c]
push 0xd
mov dword [eax], esi
mov eax, dword [esp + 0x6c]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x14]
mov eax, ecx
sar eax, 0x18
mov dword [edi + 8], 0xd000000
mov dword [edi + 0xc], 0x52444849
mov byte [edi + 0x10], al
mov eax, ecx
sar eax, 0x10
mov byte [edi + 0x11], al
mov eax, ecx
sar eax, 8
mov byte [edi + 0x12], al
mov byte [edi + 0x13], cl
mov ecx, dword [esp + 0x18]
mov eax, ecx
sar eax, 0x18
mov byte [edi + 0x14], al
mov eax, ecx
sar eax, 0x10
mov byte [edi + 0x15], al
mov eax, ecx
sar eax, 8
mov byte [edi + 0x16], al
mov eax, dword [esp + 0x20]
mov byte [edi + 0x17], cl
mov byte [edi + 0x18], 8
mov al, byte [esp + eax*4 + 0x58]
mov byte [edi + 0x19], al
lea eax, [edi + 0x1d]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov word [edi + 0x1a], 0
push eax
mov byte [edi + 0x1c], 0
call fcn.00414a00
mov esi, dword [esp + 0x18]
mov eax, ebx
sar eax, 0x18
push ebx
push ebp
mov byte [esi], al
mov eax, ebx
sar eax, 0x10
mov byte [esi + 1], al
mov eax, ebx
sar eax, 8
mov byte [esi + 2], al
mov byte [esi + 3], bl
mov dword [esi + 4], 0x54414449
add esi, 8
push esi
call fcn.00419e50
lea eax, [ebx + esi]
push ebp
mov dword [esp + 0x28], eax
call fcn.0041d0e3
lea eax, [esp + 0x28]
push ebx
push eax
call fcn.00414a00
mov eax, dword [esp + 0x30]
push 0
mov dword [eax], 0
mov dword [eax + 4], 0x444e4549
add eax, 8
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
call fcn.00414a00
mov eax, dword [esp + 0x6c]
add esp, 0x28
mov eax, dword [eax]
add eax, edi
cmp dword [esp + 0x10], eax
je 0x415b86
push 0x4b9
push str.v:kacat_bfclient_tga2png_stb_image_write.h
push str.o__out__out_len
call fcn.00422216
add esp, 0xc
mov ecx, dword [esp + 0x70]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418b49
add esp, 0x64
ret