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

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x60
mov esi, eax
lea eax, [esp + 0xa0]
push ebp
push eax
mov edi, ecx
xor bl, bl
mov dword [esp + 0xa4], ebp
call fcn.004d2f90
mov eax, dword [edi]
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x28], ebp
mov ebp, dword [esi]
mov esi, dword [esi + 4]
sub ebp, eax
sub esi, edi
add esp, 0xc
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x60], ebp
mov dword [esp + 0x28], esi
cmp byte [ecx + 0xd], bl
je 0x416331
cmp dword [esp + 0x110], 0
je 0x416331
cmp ebp, 2
jl 0x416331
cmp esi, 5
jl 0x416331
xor ecx, ecx
mov ebx, eax
cmp ecx, 5
jne 0x415dec
lea eax, [ebp - 1]
jmp 0x415e01
mov edx, ecx
imul edx, ebp
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ebx + eax]
mov dword [esp + ecx*4 + 0x68], edx
cmp ecx, 5
jne 0x415e12
lea eax, [esi - 1]
jmp 0x415e27
mov edx, ecx
imul edx, esi
mov eax, 0x66666667
imul edx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, edi
mov dword [esp + ecx*4 + 0x80], eax
inc ecx
cmp ecx, 5
jle 0x415de5
lea ebp, [esp + 0x80]
lea eax, [esp + 0x98]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x14], 5
mov ecx, dword [ebp]
mov edi, dword [ebp + 4]
mov dword [esp + 0x5c], ecx
mov ecx, eax
mov dword [esp + 0x64], edi
lea ebx, [esp + 0x68]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 5
xor edx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], edx
cmp edi, dword [esp + 0x5c]
jl 0x415ed0
mov eax, dword [esp + 0x30]
mov edx, edi
imul edx, edx, 0x64
add edx, dword [esp + 0x10c]
mov esi, edi
sub esi, dword [ebp]
inc esi
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx]
jl 0x415ec2
mov edi, dword [ebx]
mov ebp, ecx
sub ebp, edi
lea eax, [eax + ebp + 1]
cmp byte [edx + ecx], 0
jne 0x415eb5
add dword [esp + 0x18], 0x400
dec ecx
cmp ecx, edi
jge 0x415ea7
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x64]
sub edx, 0x64
dec esi
jne 0x415e96
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
cdq
idiv dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
mov dword [ecx], eax
cmp edx, eax
jge 0x415ee9
mov edx, eax
mov dword [esp + 0x1c], edx
add ecx, 4
add ebx, 4
dec dword [esp + 0x34]
mov dword [esp + 0x38], ecx
jne 0x415e70
add ebp, 4
dec dword [esp + 0x14]
mov dword [esp + 0x24], ebp
mov eax, ecx
jne 0x415e50
test edx, edx
jne 0x415f1c
mov dword [esp + 0x1c], 1
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x9c]
mov edi, 5
lea esp, [esp]
mov eax, dword [ecx - 4]
shl eax, 0xa
cdq
idiv esi
add ecx, 0x14
mov dword [ecx - 0x18], eax
mov eax, dword [ecx - 0x14]
shl eax, 0xa
cdq
idiv esi
mov dword [ecx - 0x14], eax
mov eax, dword [ecx - 0x10]
shl eax, 0xa
cdq
idiv esi
mov dword [ecx - 0x10], eax
mov eax, dword [ecx - 0xc]
shl eax, 0xa
cdq
idiv esi
mov dword [ecx - 0xc], eax
mov eax, dword [ecx - 8]
shl eax, 0xa
cdq
idiv esi
dec edi
mov dword [ecx - 8], eax
jne 0x415f30
mov eax, dword [esp + 0x60]
imul eax, eax, 0x64
cdq
idiv dword [esp + 0x28]
mov dword [esp + 0x1c], SysReAllocString
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x108]
mov edx, dword [edx]
xor edi, edi
lea ecx, [esp + 0xa4]
lea esi, [eax + edx + 0xc]
lea ebp, [edi + 5]
lea ecx, [ecx]
mov eax, dword [ecx - 0xc]
sub eax, dword [esi - 0xc]
add ecx, 0x14
cdq
mov ebx, eax
mov eax, dword [ecx - 0x1c]
sub eax, dword [esi - 8]
xor ebx, edx
sub ebx, edx
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [ecx - 0x18]
sub eax, dword [esi - 4]
add esi, 0x14
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [ecx - 0x10]
sub eax, dword [esi - 0x10]
cdq
xor eax, edx
sub eax, edx
add ebx, eax
mov eax, dword [ecx - 0x14]
sub eax, dword [esi - 0x14]
cdq
xor eax, edx
sub eax, edx
add edi, eax
add edi, ebx
dec ebp
jne 0x415fb0
mov eax, dword [esp + 0x108]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov eax, ebx
sub eax, dword [edx + ecx*4]
cdq
xor eax, edx
sub eax, edx
imul eax, eax, 0x12c
add edi, eax
cmp dword [esp + 0x1c], edi
jle 0x41602e
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], ecx
mov ebp, dword [esp + 0x110]
mov eax, dword [esp + 0x14]
lea esi, [ebp + 0x2c]
add eax, 0x64
mov dword [esi + ecx*4], edi
inc ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
cmp eax, 0x3e8
jl 0x415f94
mov eax, dword [esp + 0x108]
cmp byte [eax + 0xc], 0
je 0x416265
mov edi, dword [ebp + 0x80]
test edi, edi
jg 0x416076
mov edi, 0x28
mov edx, dword [esp + 0x94]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, 0x64
mov ecx, eax
push ecx
mov ecx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x120]
push ecx
push edx
push eax
lea ecx, [esp + 0x48]
xor ebx, ebx
push ecx
lea edx, [esp + 0x60]
push edx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00416f40
test al, al
je 0x416331
mov eax, dword [esp + 0x2c]
cmp eax, 2
jne 0x41610f
add dword [ebp + 0x4c], 0xfffff448
mov eax, dword [ebp + 0x4c]
mov ecx, ebx
sets cl
dec ecx
and eax, ecx
mov dword [ebp + 0x4c], eax
jmp 0x416143
cmp dword [esp + 0x28], 0x37
jl 0x41612a
add dword [esi], 0xfffff448
mov eax, dword [esi]
mov edx, ebx
sets dl
dec edx
and eax, edx
mov dword [esi], eax
jmp 0x416143
cmp eax, 1
jne 0x416143
mov eax, 0x1770
add dword [ebp + 0x30], eax
add dword [ebp + 0x34], eax
add dword [ebp + 0x38], eax
add dword [ebp + 0x40], eax
add dword [ebp + 0x48], eax
xor eax, eax
cmp dword [esp + 0x50], edi
mov dword [esp + 0x1c], SysReAllocString
setg al
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x108]
add eax, dword [ecx + 8]
xor ecx, ecx
cmp dword [eax + 0x14], edi
setg cl
cmp dword [esp + 0x28], ecx
jne 0x416230
xor edx, edx
cmp dword [eax + 0x10], edx
setle dl
xor ecx, ecx
cmp dword [esp + 0x4c], ecx
setle cl
cmp ecx, edx
jne 0x416230
xor edx, edx
cmp dword [eax + 0x1c], edi
setg dl
xor ecx, ecx
cmp dword [esp + 0x58], edi
setg cl
cmp ecx, edx
jne 0x416230
xor edx, edx
cmp dword [eax + 0x18], edx
setle dl
xor ecx, ecx
cmp dword [esp + 0x54], ecx
setle cl
cmp ecx, edx
jne 0x416230
xor edx, edx
cmp dword [eax + 4], edi
setg dl
xor ecx, ecx
cmp dword [esp + 0x40], edi
setg cl
cmp ecx, edx
jne 0x416230
xor edx, edx
cmp dword [eax], edx
setle dl
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
setle cl
cmp ecx, edx
jne 0x416230
xor edx, edx
cmp dword [eax + 0xc], edi
setg dl
xor ecx, ecx
cmp dword [esp + 0x48], edi
setg cl
cmp ecx, edx
jne 0x416230
xor edx, edx
cmp dword [eax + 8], edx
setle dl
xor eax, eax
cmp dword [esp + 0x44], eax
setle al
cmp eax, edx
jne 0x416230
mov eax, dword [esi]
xor ecx, ecx
add eax, 0xfffff830
sets cl
mov dword [esi - 0x28], 1
dec ecx
and eax, ecx
mov dword [esi], eax
mov eax, dword [esi]
cmp dword [esp + 0x1c], eax
jle 0x416244
mov edx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x14]
inc dword [esp + 0x18]
add eax, 0x20
add esi, 4
mov dword [esp + 0x14], eax
cmp eax, 0x140
jl 0x416162
mov ebx, dword [esp + 0x24]
mov eax, 1
cmp dword [esp + 0x10], eax
je 0x416289
cmp ebx, 0x25
jge 0x41632f
mov dword [esp + 0x10], eax
mov dword [ebp + 0x30], 0
jmp 0x41632f
cmp ebx, 0x35
jle 0x41632f
mov eax, SysReAllocString
mov dword [ebp + 0x30], eax
mov ecx, dword [ebp + 0x2c]
cmp ecx, eax
jge 0x4162ab
mov eax, ecx
mov dword [esp + 0x10], 0
mov ecx, dword [ebp + 0x34]
cmp eax, ecx
jle 0x4162bc
mov eax, ecx
mov dword [esp + 0x10], 2
mov ecx, dword [ebp + 0x38]
cmp eax, ecx
jle 0x4162cd
mov eax, ecx
mov dword [esp + 0x10], 3
mov ecx, dword [ebp + 0x3c]
cmp eax, ecx
jle 0x4162de
mov eax, ecx
mov dword [esp + 0x10], 4
mov ecx, dword [ebp + 0x40]
cmp eax, ecx
jle 0x4162ef
mov eax, ecx
mov dword [esp + 0x10], 5
mov ecx, dword [ebp + 0x44]
cmp eax, ecx
jle 0x416300
mov eax, ecx
mov dword [esp + 0x10], 6
mov ecx, dword [ebp + 0x48]
cmp eax, ecx
jle 0x416311
mov eax, ecx
mov dword [esp + 0x10], 7
mov ecx, dword [ebp + 0x4c]
cmp eax, ecx
jle 0x416322
mov eax, ecx
mov dword [esp + 0x10], 8
cmp eax, dword [ebp + 0x50]
jle 0x41632f
mov dword [esp + 0x10], 9
mov bl, 1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x110]
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov al, bl
pop ebx
add esp, 0xf4
ret 0x10