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

Disassembly:
sub esp, 0x2dc
push ebx
mov ebx, dword [esp + 0x308]
push ebp
mov ebp, dword [esp + 0x2ec]
push esi
mov esi, dword [esp + 0x30c]
push edi
mov edi, dword [esp + 0x30c]
test ebp, ebp
mov dword [esp + 0x10], 0xffffffff
jl 0x41e5f5
cmp ebp, dword [0x671b5c]
jge 0x41e5f5
mov ecx, dword [esp + 0x2f0]
lea eax, [ebp + ebp*8]
shl eax, 2
mov edx, dword [eax + 0x671878]
mov dword [ecx + 0x40], edx
mov edx, dword [eax + 0x67187c]
mov dword [ecx + 0x44], edx
mov eax, dword [eax + 0x671880]
mov dword [ecx + 0x3c], eax
jmp 0x41e640
mov ecx, dword [esp + 0x318]
mov edx, dword [esp + 0x308]
mov eax, dword [esp + 0x304]
push ecx
mov ecx, dword [esp + 0x304]
push ebx
push esi
push edi
push edx
mov edx, dword [esp + 0x310]
push eax
mov eax, dword [esp + 0x310]
push ecx
mov ecx, dword [esp + 0x30c]
push edx
push eax
push ebp
push ecx
call fcn.0041f2d0
mov ecx, dword [esp + 0x31c]
add esp, 0x2c
mov edx, dword [esp + 0x318]
mov eax, dword [esp + 0x308]
push edx
mov edx, dword [esp + 0x308]
push ebx
push esi
push edi
push eax
mov eax, dword [esp + 0x314]
push edx
mov edx, dword [esp + 0x314]
push eax
mov eax, dword [esp + 0x314]
push edx
push eax
push ebp
push ecx
call fcn.0041e060
add esp, 0x2c
cmp eax, 0xffffffff
je 0x41e777
mov ecx, dword [esp + 0x2f0]
mov eax, dword [ecx + 0x3acc]
test eax, eax
jne 0x41e76f
mov eax, dword [ecx + 0x3c]
mov ebx, dword [ecx + 0x20]
cdq
sub ebx, eax
mov eax, dword [ecx + 0x40]
mov dword [esp + 0x10], ebx
mov ebx, dword [ecx + 0x24]
mov ecx, dword [esp + 0x10]
sbb ebx, edx
cdq
push edx
push eax
push ebx
push ecx
call fcn.0053f650
mov ebx, dword [esp + 0x2f0]
mov dword [ebx + 0x3ba0], eax
mov eax, dword [ebx + 0x29c]
cmp eax, 3
mov dword [ebx + 0x3ba4], edx
jne 0x41e6f8
mov edx, dword [ebx + 0x2b8]
push edx
call fcn.00434110
cdq
mov dword [ebx + 0x3ba0], eax
add esp, 4
mov dword [ebx + 0x3ba4], edx
cmp ebp, 0x3e8
jl 0x41e768
cmp ebp, 0x3f0
jge 0x41e768
mov eax, dword [ebx + 0x40]
mov ebp, dword [ebx + 0x3ba4]
mov ecx, dword [ebx + 0x3ba0]
push ebp
cdq
push ecx
push edx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
call fcn.0053f700
mov ecx, dword [ebx + 0x20]
mov ebp, dword [ebx + 0x24]
sub ecx, eax
mov eax, dword [ebx + 0x3c]
sbb ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov dword [esp + 0xe8], ebp
js 0x41e768
jg 0x41e74e
cmp ecx, 0x800
jb 0x41e768
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 1
adc ecx, 0
mov dword [ebx + 0x3ba0], eax
mov dword [ebx + 0x3ba4], ecx
mov ebx, dword [esp + 0x314]
mov dword [esp + 0x10], 0
mov eax, dword [0x737920]
test eax, eax
jne 0x41ea97
mov eax, dword [esp + 0x2f8]
test eax, eax
je 0x41ea97
test byte [esp + 0x318], 1
je 0x41ea97
mov eax, esi
mov dword [esp + 0x2c], 2
shr edi, 0x10
shl eax, 0x10
shr esi, 0x10
shl ebx, 0x10
or edi, eax
or esi, ebx
mov ebp, edi
mov edi, esi
xor ebx, ebx
mov dword [esp + 0x30], 7
mov dword [esp + 0x34], 0xb
mov dword [esp + 0x38], 0x15
mov dword [esp + 0x3c], 0x26
mov dword [esp + 0x40], 0x2b
mov dword [esp + 0x44], 0x2f
mov dword [esp + 0x48], 0x38
mov dword [esp + 0x4c], 0x39
mov dword [esp + 0x50], 0x3d
mov dword [esp + 0x18], 0xd
mov dword [esp + 0x1c], 0x1d
mov dword [esp + 0x20], 0x29
mov dword [esp + 0x24], 0x95
mov dword [esp + 0x28], 0xe5
xor edx, edx
lea esi, [esp + 0x2c]
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x41e861
cmp ecx, 0x20
jge 0x41e847
mov eax, ebp
jmp 0x41e84c
mov eax, edi
sub ecx, 0x20
shr eax, cl
lea ecx, [ebx + ebx]
add esi, 4
and eax, 1
or eax, ecx
inc edx
cmp edx, 0xa
mov ebx, eax
jl 0x41e837
xor edi, edi
lea esi, [esp + 0x18]
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x41ea97
mov eax, ebx
xor edx, edx
div ecx
imul eax, ecx
cmp eax, ebx
je 0x41e88d
inc edi
add esi, 4
cmp edi, 5
jl 0x41e867
jmp 0x41ea97
cmp byte [esp + 0x318], 0x77
jne 0x41ea97
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0xec]
mov dword [0x737920], 1
mov dword [esp + 0x54], 0x852c0eee
mov dword [esp + 0x58], 0xc03b08cf
mov dword [esp + 0x5c], 0xd13a0fdd
mov dword [esp + 0x60], 0xc12c14df
mov dword [esp + 0x64], 0xd72c109a
mov dword [esp + 0x68], 0xcb260fc9
mov dword [esp + 0x6c], 0xcb28059a
mov dword [esp + 0x70], 0xc927099a
mov dword [esp + 0x74], 0xd72a46c3
mov dword [esp + 0x78], 0xc03d07df
mov dword [esp + 0x7c], 0x853b099a
mov dword [esp + 0x80], 0xd12002df
mov dword [esp + 0x84], 0xc021129a
mov dword [esp + 0x88], 0xc920009a
mov dword [esp + 0x8c], 0xcd3e46df
mov dword [esp + 0x90], 0x852105d3
mov dword [esp + 0x94], 0xd62c09de
mov dword [esp + 0x98], 0xd126089a
mov dword [esp + 0x9c], 0xc631039a
mov dword [esp + 0xa0], 0x852d03df
mov dword [esp + 0xa4], 0x852c0ece
mov dword [esp + 0xa8], 0xc0330fc9
mov dword [esp + 0xac], 0x852f099a
mov dword [esp + 0xb0], 0xe8795689
mov dword [esp + 0xb4], 0xca1d4694
mov dword [esp + 0xb8], 0xc82c149a
mov dword [esp + 0xbc], 0x852c10d5
mov dword [esp + 0xc0], 0xd6200ece
mov dword [esp + 0xc4], 0xc8200a9a
mov dword [esp + 0xc8], 0xd12812d3
mov dword [esp + 0xcc], 0x892709d3
mov dword [esp + 0xd0], 0xc025169a
mov dword [esp + 0xd4], 0x852c15db
mov dword [esp + 0xd8], 0xcc2e03c8
mov dword [esp + 0xdc], 0xd72c12c9
mov dword [esp + 0xe0], 0xa5496694
rep stosd dword es:[edi], eax
mov edx, dword [esp + eax + 0x54]
add eax, 4
xor edx, 0xa54966ba
cmp eax, 0x90
mov dword [esp + eax + 0xe8], edx
jl 0x41ea20
mov eax, dword [0x748004]
push 0x40000
push 0
push eax
lea ecx, [esp + 0xf8]
push 0xffffffffffffffff
push ecx
call fcn.0042b5a0
mov eax, dword [0x78ca5c]
add esp, 0x14
test eax, eax
jne 0x41ea74
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 eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
cmp eax, 0xffffffff
pop ebx
jne 0x41eab1
mov ecx, dword [esp + 0x2e0]
mov dword [ecx + 0x29c], eax
add esp, 0x2dc
ret