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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x54
mov ebp, ecx
mov ecx, eax
movzx ebx, word [esp + 0x74]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ebx
mov esi, dword [ecx + 0x120]
mov edi, dword [0x48a8a0]
xor edi, esp
mov edx, dword [esi + 0x14b18]
mov dword [esp + 0x50], edi
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x14b1c]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0xa4]
mov dword [esp + 4], ecx
lea ebx, [edx + edx*8]
add ebx, edx
neg ebx
sub ebx, dword [ecx + 0x2c]
add ebx, 0x64
call fcn.004177d0
mov ecx, dword [esp + 4]
mov dword [esp], eax
mov edx, 3
mov byte [esp + 0x3a], dl
mov byte [esp + 0x3e], dl
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x28], edx
xor edx, edx
cmp dword [esi + 0x60], 0
mov eax, dword [ecx + 0x4c]
setne dl
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0x48]
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0xd0]
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x68]
cmp edx, 3
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], 5
mov byte [esp + 0x3b], 2
mov byte [esp + 0x3c], 4
mov byte [esp + 0x3d], 0
mov dword [esp + 0x34], edi
mov dword [esp + 4], eax
mov dword [esp + 0x30], ecx
jne 0x41724b
mov eax, dword [esi + 0x6c]
mov dword [esp + 8], eax
jmp 0x41726c
test edx, edx
jne 0x417258
mov eax, dword [esi + 0x78]
mov dword [esp + 8], eax
jmp 0x41726c
mov ecx, dword [esi + 0x10]
shl ecx, 6
mov edi, dword [esi + 0x70]
mov eax, dword [ecx + edi*4 + 0x46a340]
mov dword [esp + 8], eax
cmp edx, 7
jae 0x41727c
movzx eax, byte [esp + edx + 0x38]
mov dword [esp + 0xc], eax
jmp 0x417284
mov dword [esp + 0xc], 0
cmp dword [esi + 0x80], 0
je 0x4172cb
mov eax, dword [esi + 0x14eb8]
cmp eax, 0x1fe
jl 0x41729f
mov eax, 0x1fe
cmp eax, 0xfffffe02
jge 0x4172ab
mov eax, 0xfffffe02
mov dword [esp + 0x3c], eax
test eax, eax
jl 0x4172be
or eax, 0x2c00
mov dword [esp + 0x3c], eax
jmp 0x4172d1
neg eax
or eax, 0x2e00
mov dword [esp + 0x3c], eax
jmp 0x4172d1
xor eax, eax
mov dword [esp + 0x3c], eax
cmp dword [esi + 0x84], 0
je 0x417308
fld dword [esi + 0x14eb4]
fdiv qword [0x468bb8]
fmul qword [0x468bb0]
fadd qword [0x468ba8]
call fcn.0040c080
cdq
mov dword [esp + 0x40], eax
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov dword [esp + 0x40], ecx
jmp 0x41730e
xor eax, eax
mov dword [esp + 0x40], eax
cmp dword [esp + 0x10], 0xffffffff
je 0x417336
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
mov edi, dword [esp + 0x10]
setg al
dec edi
xor edx, edx
cmp ecx, edi
mov dword [esp + 0x38], eax
setl dl
mov dword [esp + 0x44], edx
jmp 0x417340
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], eax
test ebx, ebx
mov eax, dword [esi + 0xb4]
jg 0x41734f
mov ebx, 0
cmp eax, 3
je 0x4175ec
test eax, eax
je 0x417390
cmp eax, 2
jne 0x41736b
mov dword [esp + 0x14], 2
jmp 0x417398
cmp eax, 1
jne 0x417386
mov eax, 4
cmp dword [esi + 0x50], 0
jne 0x417380
mov eax, 3
mov dword [esp + 0x14], eax
jmp 0x417398
mov dword [esp + 0x14], 7
jmp 0x417398
mov dword [esp + 0x14], 1
mov edx, dword [esi + 0x3c]
cmp edx, 0x7d00
jg 0x4173ab
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x4173cd
cmp edx, 0xbb80
je 0x4173c5
mov eax, 3
jg 0x4173bf
mov eax, 1
mov dword [esp + 0x10], eax
jmp 0x4173cd
mov dword [esp + 0x10], 2
mov eax, dword [esi + 0xb8]
cmp eax, 2
je 0x417424
cmp eax, 3
je 0x417424
cmp dword [esp + 0x34], 0xffffffff
je 0x4175dd
cmp dword [esi + 0x90], 0
je 0x4173fa
cmp dword [esi + 0x78], 0x140
jl 0x417424
cmp dword [esi + 0xdc], 0
jne 0x417424
movzx eax, byte [esp + 0x30]
mov dword [esp + 0x30], eax
cmp dword [esi + 0xd4], 0
jne 0x417424
cmp dword [esp + 0x30], 0
je 0x417424
cmp edx, 0x7d00
jg 0x41742e
mov dword [esp + 0x4c], 1
jmp 0x417434
xor eax, eax
mov dword [esp + 0x4c], eax
movzx eax, word [esi + 0x14ef8]
mov edx, ebx
mov dword [esp + 0x48], eax
mov ecx, ebx
mov eax, ebx
shr edx, 0x18
shr ecx, 0x10
shr eax, 8
mov byte [ebp], dl
mov byte [ebp + 1], cl
mov byte [ebp + 2], al
mov byte [ebp + 3], bl
lea ebx, [ebp + 4]
push 9
push dword [esp + 4]
push ebx
call fcn.0044e090
add esp, 0xc
fld qword [0x468bc0]
mov edi, dword [esp + 0x34]
mov dword [esp], edi
fild dword [esp]
fdiv qword [0x468bc8]
mov eax, dword [esp + 0xc]
mov byte [ebp + 0xd], al
fadd qword [0x468ba8]
fcom st(1)
fnstsw ax
sahf
fxch st(1)
jbe 0x41749a
fst st(1)
fstp st(0)
call fcn.0040c080
mov ebx, dword [esp + 0x40]
mov edx, ebx
mov ecx, ebx
shr edx, 0x18
mov byte [ebp + 0xf], dl
mov edx, ebx
shr ecx, 0x10
mov byte [ebp + 0x10], cl
xor ecx, ecx
mov byte [ebp + 0x15], cl
mov byte [ebp + 0x16], cl
mov ecx, dword [esp + 0x2c]
shl ecx, 5
shr edx, 8
mov byte [ebp + 0x11], dl
mov byte [ebp + 0xe], al
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
add ecx, dword [esp + 0x30]
shl eax, 6
mov byte [ebp + 0x14], dl
add ecx, eax
mov byte [ebp + 0x12], bl
mov ebx, edx
mov edx, dword [esp + 0x38]
shl edx, 7
shr ebx, 8
mov byte [ebp + 0x13], bl
mov eax, dword [esp + 0x10]
shl eax, 6
lea ebx, [ecx + edx + 0x10]
mov edx, dword [esp + 0x1c]
mov byte [ebp + 0x17], bl
mov ebx, edx
shr ebx, 4
mov ecx, dword [esp + 8]
cmp ecx, 0xff
mov byte [ebp + 0x19], bl
mov ebx, dword [esp + 0x18]
mov edi, ebx
jle 0x417526
mov ecx, 0xff
shl edx, 4
shr edi, 8
add edx, edi
mov byte [ebp + 0x1a], dl
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov byte [ebp + 0x18], cl
mov byte [ebp + 0x1b], bl
mov ebx, dword [esp + 0x4c]
lea ecx, [edi + edx*4]
shl ebx, 5
add ecx, eax
add ecx, ebx
mov byte [ebp + 0x1c], cl
mov byte [ebp + 0x1d], 0
mov eax, dword [esi + 0x64]
mov edx, eax
shr edx, 8
mov byte [ebp + 0x1e], dl
mov edx, dword [esp + 0x20]
mov ecx, edx
shr ecx, 0x18
mov ebx, edx
mov byte [ebp + 0x20], cl
mov byte [ebp + 0x1f], al
mov eax, edx
mov ecx, dword [esp + 0x48]
mov byte [ebp + 0x23], dl
mov edx, ecx
shr eax, 0x10
mov byte [ebp + 0x21], al
shr ebx, 8
shr edx, 8
mov byte [ebp + 0x22], bl
mov byte [ebp + 0x24], dl
xor edx, edx
mov byte [ebp + 0x25], cl
mov eax, dword [esp + 0x24]
movzx ecx, byte [edx + ebp]
mov ebx, eax
xor eax, ecx
inc edx
movzx eax, al
shr ebx, 8
xor ebx, dword [eax*4 + str._t__adjust_type:__d_n]
movzx eax, bx
cmp edx, 0x26
jl 0x417596
mov dword [esp + 0x24], eax
mov edx, eax
mov eax, edx
shr eax, 8
mov byte [ebp + 0x26], al
mov byte [ebp + 0x27], dl
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0044c34d
mov eax, 0x28
add esp, 0x54
pop ebp
pop ebx
pop edi
pop esi
ret
cmp dword [esi + 0x38], 0xffffffff
je 0x417424
jmp 0x4173e8
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x417398