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

Disassembly:
sub esp, 0x290
mov dword [0x750018], 0
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.004f35c0
mov esi, dword [esp + 0x2ac]
mov ebx, dword [esp + 0x2cc]
test esi, esi
je 0x42f230
test bl, 1
je 0x42f230
mov al, byte [esp + 0x2c4]
mov cl, byte [esp + 0x2b0]
shr al, 3
and al, 4
and cl, 4
xor al, cl
je 0x42f230
cmp byte [0x817710], 0x66
je 0x42f230
mov eax, dword [0x78ca5c]
test eax, eax
jne 0x42f230
cmp bl, 0x55
jne 0x42f230
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xa0]
mov dword [esp + 0x10], 0xa05b7dc
mov dword [esp + 0x14], 0x4f12b1fd
mov dword [esp + 0x18], 0x5e13b6ef
mov dword [esp + 0x1c], 0x4e05aded
mov dword [esp + 0x20], 0x5805a9a8
mov dword [esp + 0x24], 0x440fb6fb
mov dword [esp + 0x28], 0x4401bca8
mov dword [esp + 0x2c], 0x460eb0a8
mov dword [esp + 0x30], 0x5803fff1
mov dword [esp + 0x34], 0x4f14beed
mov dword [esp + 0x38], 0xa12b0a8
mov dword [esp + 0x3c], 0x5e09bbed
mov dword [esp + 0x40], 0x4f08aba8
mov dword [esp + 0x44], 0x4609b9a8
mov dword [esp + 0x48], 0x4217ffed
mov dword [esp + 0x4c], 0xa08bce1
mov dword [esp + 0x50], 0x5905b0ec
mov dword [esp + 0x54], 0x5e0fb1a8
mov dword [esp + 0x58], 0x4918baa8
mov dword [esp + 0x5c], 0xa04baed
mov dword [esp + 0x60], 0xa05b7fc
mov dword [esp + 0x64], 0x4f1ab6fb
mov dword [esp + 0x68], 0xa06b0a8
mov dword [esp + 0x6c], 0x6750efbb
mov dword [esp + 0x70], 0x4534ffa6
mov dword [esp + 0x74], 0x4705ada8
mov dword [esp + 0x78], 0xa05a9e7
mov dword [esp + 0x7c], 0x5909b7fc
mov dword [esp + 0x80], 0x4709b3a8
mov dword [esp + 0x84], 0x5e01abe1
mov dword [esp + 0x88], 0x60eb0e1
mov dword [esp + 0x8c], 0x4f0cafa8
mov dword [esp + 0x90], 0xa05ace9
mov dword [esp + 0x94], 0x4307bafa
mov dword [esp + 0x98], 0x5805abfb
mov dword [esp + 0x9c], 0x2a60dfa6
rep stosd dword es:[edi], eax
mov edx, dword [esp + eax + 0x10]
add eax, 4
xor edx, 0x2a60df88
cmp eax, 0x90
mov dword [esp + eax + 0x9c], edx
jl 0x42f1b9
mov eax, dword [0x748004]
push 0x40000
push 0
push eax
lea ecx, [esp + 0xac]
push 0xffffffffffffffff
push ecx
call fcn.0042b5a0
mov eax, dword [0x78ca5c]
add esp, 0x14
test eax, eax
jne 0x42f20d
mov edx, dword [0x748004]
push 0x10
push edx
call fcn.004f3450
add esp, 8
push 0
push 0
push 0x671120
call fcn.004f6430
or eax, 0x80000000
push 0
push eax
push 0x671120
call fcn.004f6640
add esp, 0x18
mov edi, dword [esp + 0x2c8]
mov eax, dword [esp + 0x2c4]
mov ebp, dword [esp + 0x2c0]
mov ecx, dword [esp + 0x2b8]
mov edx, dword [esp + 0x2b4]
push ebx
mov ebx, dword [esp + 0x2c0]
push edi
push eax
mov eax, dword [esp + 0x2bc]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x2c0]
push edx
push eax
push esi
mov esi, dword [esp + 0x2c8]
push ecx
push 0x10
push esi
call fcn.0042ec60
add esp, 0x30
test eax, eax
jne 0x42f7fd
mov eax, dword [0x85ac64]
test eax, eax
jne 0x42f7fd
lea edx, [esi + 0x2d8]
push 0
push edx
push esi
call fcn.00416c70
mov eax, dword [str.CD_XA001]
mov edx, dword [esp + 0x2d8]
mov dword [esi + 0x6d8], eax
mov ecx, dword [0x671bb0]
mov eax, dword [esp + 0x2d0]
push edx
mov edx, dword [esp + 0x2c4]
push edi
mov dword [esi + 0x6dc], ecx
mov ecx, dword [esp + 0x2cc]
push eax
mov eax, dword [esp + 0x2c8]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x2d0]
push edx
mov edx, dword [esp + 0x2d0]
push eax
push ecx
push edx
push esi
call fcn.0042ce40
mov eax, dword [0x85ac64]
add esp, 0x38
test eax, eax
jne 0x42f7fd
mov eax, dword [esi + 0x3be0]
test eax, eax
je 0x42f36b
mov eax, dword [esp + 0x2cc]
mov ecx, dword [esp + 0x2c4]
mov edx, dword [esp + 0x2b8]
push eax
mov eax, dword [esp + 0x2b8]
push edi
push ecx
mov ecx, dword [esp + 0x2bc]
push ebp
push ebx
push edx
mov edx, dword [esp + 0x2c4]
push eax
mov eax, dword [esp + 0x2c4]
push ecx
push edx
push eax
push esi
call fcn.004215b0
mov eax, dword [0x85ac64]
add esp, 0x2c
test eax, eax
jne 0x42f7fd
mov ecx, dword [esp + 0x2cc]
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2b8]
push ecx
mov ecx, dword [esp + 0x2b8]
push edi
push edx
mov edx, dword [esp + 0x2bc]
push ebp
push ebx
push eax
mov eax, dword [esp + 0x2c4]
push ecx
mov ecx, dword [esp + 0x2c4]
push edx
push eax
push ecx
push esi
call fcn.0042d120
mov eax, dword [0x85ac64]
add esp, 0x2c
test eax, eax
jne 0x42f7fd
mov eax, dword [esi + 0x2d0]
test eax, eax
je 0x42f490
mov edx, dword [esp + 0x2cc]
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2b8]
push edx
mov edx, dword [esp + 0x2b8]
push edi
push eax
mov eax, dword [esp + 0x2bc]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x2c4]
push edx
mov edx, dword [esp + 0x2c4]
push eax
push ecx
push edx
push esi
call fcn.0042ee10
add esp, 0x2c
test eax, eax
jne 0x42f7fd
mov eax, dword [0x750018]
mov ecx, dword [esi + 0x2d4]
cmp eax, ecx
jae 0x42f490
mov ecx, dword [esp + 0x2cc]
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2b8]
push ecx
mov ecx, dword [esp + 0x2b8]
push edi
push edx
mov edx, dword [esp + 0x2bc]
push ebp
push ebx
push eax
mov eax, dword [esp + 0x2c4]
push ecx
mov ecx, dword [esp + 0x2c4]
push edx
push eax
push ecx
push 1
push esi
call fcn.0042ec60
add esp, 0x30
test eax, eax
jne 0x42f7fd
mov eax, dword [0x85ac64]
test eax, eax
jne 0x42f7fd
mov edx, dword [0x750018]
mov eax, dword [esi + 0x2d4]
cmp edx, eax
jb 0x42f425
mov eax, dword [esp + 0x2cc]
mov ecx, dword [esp + 0x2c4]
mov edx, dword [esp + 0x2b8]
push eax
mov eax, dword [esp + 0x2b8]
push edi
push ecx
mov ecx, dword [esp + 0x2bc]
push ebp
push ebx
push edx
mov edx, dword [esp + 0x2c4]
push eax
mov eax, dword [esp + 0x2c4]
push ecx
mov ecx, dword [esi + 0x1418]
push edx
push eax
push ecx
push esi
call fcn.0042cd40
mov eax, dword [0x85ac64]
add esp, 0x30
test eax, eax
jne 0x42f7fd
mov eax, dword [esi + 0x3be0]
test eax, eax
je 0x42f54a
mov edx, dword [esp + 0x2cc]
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2b8]
push edx
mov edx, dword [esp + 0x2b8]
push edi
push eax
mov eax, dword [esp + 0x2bc]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x2c4]
push edx
mov edx, dword [esp + 0x2c4]
push eax
mov eax, dword [esi + 0x1418]
push ecx
push edx
push eax
push esi
call fcn.004212f0
mov eax, dword [0x85ac64]
add esp, 0x30
test eax, eax
jne 0x42f7fd
mov ecx, dword [esp + 0x2cc]
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2b8]
push ecx
mov ecx, dword [esp + 0x2b8]
push edi
push edx
mov edx, dword [esp + 0x2bc]
push ebp
push ebx
push eax
mov eax, dword [esp + 0x2c4]
push ecx
mov ecx, dword [esp + 0x2c4]
push edx
push eax
push ecx
push esi
call fcn.0042d540
mov eax, dword [0x85ac64]
add esp, 0x2c
test eax, eax
jne 0x42f7fd
mov eax, dword [esi + 0x3be0]
test eax, eax
je 0x42f5f6
mov edx, dword [esp + 0x2cc]
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2b8]
push edx
mov edx, dword [esp + 0x2b8]
push edi
push eax
mov eax, dword [esp + 0x2bc]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x2c4]
push edx
mov edx, dword [esp + 0x2c4]
push eax
push ecx
push edx
push esi
call fcn.00421400
mov eax, dword [0x85ac64]
add esp, 0x2c
test eax, eax
jne 0x42f7fd
mov eax, dword [esi + 0x2d0]
test eax, eax
jne 0x42f64c
mov eax, dword [esp + 0x2cc]
mov ecx, dword [esp + 0x2c4]
mov edx, dword [esp + 0x2b8]
push eax
mov eax, dword [esp + 0x2b8]
push edi
push ecx
mov ecx, dword [esp + 0x2bc]
push ebp
push ebx
push edx
mov edx, dword [esp + 0x2c4]
push eax
mov eax, dword [esp + 0x2c4]
push ecx
push edx
push eax
push esi
call fcn.0042ee10
add esp, 0x2c
test eax, eax
jne 0x42f7fd
mov eax, dword [0x750018]
mov ecx, dword [0x7378f8]
cmp eax, ecx
mov dword [0x747fe8], 0
jae 0x42f6cf
mov ecx, dword [esp + 0x2cc]
mov edx, dword [esp + 0x2c4]
mov eax, dword [esp + 0x2b8]
push ecx
mov ecx, dword [esp + 0x2b8]
push edi
push edx
mov edx, dword [esp + 0x2bc]
push ebp
push ebx
push eax
mov eax, dword [esp + 0x2c4]
push ecx
mov ecx, dword [esp + 0x2c4]
push edx
push eax
push ecx
push 1
push esi
call fcn.0042ec60
add esp, 0x30
test eax, eax
jne 0x42f7fd
mov eax, dword [0x85ac64]
test eax, eax
jne 0x42f7fd
mov eax, dword [0x750018]
mov ecx, dword [0x7378f8]
cmp eax, ecx
jb 0x42f665
jne 0x42f7fd
mov edx, dword [esp + 0x2cc]
mov eax, dword [esp + 0x2c4]
mov ecx, dword [esp + 0x2b8]
push edx
mov edx, dword [esp + 0x2b8]
push edi
push eax
mov eax, dword [esp + 0x2bc]
push ebp
push ebx
push ecx
mov ecx, dword [esp + 0x2c4]
push edx
mov edx, dword [esp + 0x2c4]
push eax
mov eax, dword [esi + 0x1418]
push ecx
push edx
push eax
push esi
call fcn.00425f60
mov ecx, dword [esp + 0x2fc]
mov edx, dword [esp + 0x2f4]
mov eax, dword [esp + 0x2e8]
push ecx
mov ecx, dword [esp + 0x2e8]
push edi
push edx
mov edx, dword [esp + 0x2ec]
push ebp
push ebx
push eax
mov eax, dword [esp + 0x2f4]
push ecx
mov ecx, dword [esp + 0x2f4]
push edx
mov edx, dword [esi + 0x1418]
push eax
push ecx
push edx
push esi
call fcn.0042c150
mov eax, dword [0x85ac64]
add esp, 0x60
test eax, eax
jne 0x42f7fd
mov eax, dword [0x750018]
mov ecx, dword [esi + 0x3ba0]
cmp eax, ecx
jae 0x42f7e6
mov eax, dword [esp + 0x2cc]
mov ecx, dword [esp + 0x2c4]
mov edx, dword [esp + 0x2b8]
push eax
mov eax, dword [esp + 0x2b8]
push edi
push ecx
mov ecx, dword [esp + 0x2bc]
push ebp
push ebx
push edx
mov edx, dword [esp + 0x2c4]
push eax
mov eax, dword [esp + 0x2c4]
push ecx
push edx
push eax
push 1
push esi
call fcn.0042ec60
add esp, 0x30
test eax, eax
jne 0x42f7fd
mov eax, dword [0x85ac64]
test eax, eax
jne 0x42f7fd
mov eax, dword [0x750018]
mov ecx, dword [esi + 0x3ba0]
cmp eax, ecx
jb 0x42f784
mov edx, dword [esi + 0x3ba0]
pop edi
sub eax, edx
pop esi
neg eax
pop ebp
pop ebx
sbb eax, eax
add esp, 0x290
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x290
ret