Function at 0x4105a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x994
push ebx
push ebp
mov ebp, dword [esp + 0x9a0]
push esi
test ebp, ebp
push edi
jne 0x4105c6
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x994
ret 0x14
mov ecx, dword [0x4918ec]
mov eax, dword [ebp + 0x54]
push ecx
push eax
call fcn.0040f3f0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4105f0
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x994
ret 0x14
mov ax, word [ebx + 0x44]
test ax, ax
je 0x410ae9
cmp ax, 0xffff
je 0x410ae9
mov cx, word [ebx + 0x1a4]
mov esi, dword [esp + 0x9b8]
cmp si, cx
jae 0x410ad8
cmp si, 7
ja 0x410635
pop edi
pop esi
pop ebp
mov ax, 4
pop ebx
add esp, 0x994
ret 0x14
mov eax, dword [ebx + 0x1c8]
test eax, eax
je 0x410712
mov eax, dword [ebx + 0x1b4]
cmp eax, 5
je 0x410657
cmp eax, 7
jne 0x410712
test byte [ebx + 0x1b8], 4
je 0x410712
lea edx, [esp + 0x10]
lea edi, [ebx + 0x1cc]
push edx
lea edx, [esp + 0xf8]
push 0x50
push edx
mov edx, dword [esp + 0x9c0]
push edi
push esi
push edx
mov edx, dword [esp + 0x9c8]
push edx
mov edx, dword [esp + 0x9c8]
push edx
push ecx
push eax
call fcn.00415a10
test ax, ax
jne 0x4106fb
lea eax, [esp + 0x14]
lea ecx, [esp + 0x144]
push eax
mov eax, dword [esp + 0x14]
push 0x50
push ecx
lea edx, [esp + 0x100]
push 0x50
push edx
push eax
push ebp
call fcn.004114a0
test ax, ax
jne 0x4106fb
lea ecx, [esp + 0x48]
push ecx
push edi
call fcn.004154c0
lea edx, [esp + 0x14]
lea eax, [esp + 0xf4]
push edx
push 0x50
lea ecx, [esp + 0x50]
push eax
mov eax, dword [ebx + 0x1b4]
lea edx, [esp + 0x150]
push ecx
push edx
push eax
call fcn.00416490
push ebx
push eax
call fcn.0040d340
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x3c], ecx
lea edi, [esp + 0x364]
mov dword [esp + 0x40], ecx
xor edx, edx
mov dword [esp + 0x44], ecx
mov ecx, 0x64
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x4f4]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x1d4]
rep stosd dword es:[edi], eax
mov dword [esp + 0x18], eax
mov ecx, 0xc
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x8c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x58]
mov dword [esp + 0x28], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xc0]
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
stosw word es:[edi], ax
mov dword [esp + 0x38], ecx
xor eax, eax
movsx edx, word [ebx + 0x5a]
lea ecx, [esp + 0x24]
mov ax, word [ebx + edx*2 + 0x46]
push eax
push 0x45203c
push ecx
call fcn.004362ea
xor edx, edx
lea eax, [esp + 0x24]
mov dx, word [ebx + 0x44]
push edx
push 0x45203c
push eax
call fcn.004362ea
mov ecx, dword [esp + 0x9c4]
lea edx, [esp + 0xa4]
and ecx, 0xffff
push ecx
push 0x45203c
push edx
call fcn.004362ea
mov eax, dword [esp + 0x9d4]
lea ecx, [esp + 0x7c]
and eax, 0xffff
push eax
push 0x45203c
push ecx
call fcn.004362ea
mov edx, dword [esp + 0x9e4]
lea eax, [esp + 0xf0]
and edx, 0xffff
push edx
push 0x45203c
push eax
call fcn.004362ea
and esi, 0xffff
lea ecx, [esp + 0x6c]
push esi
push 0x45203c
push ecx
call fcn.004362ea
add esp, 0x48
lea edx, [esp + 0x194]
push 0x40
push edx
push ebp
call fcn.0040ccc0
test ax, ax
jne 0x410aed
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc0]
push eax
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x94]
push edx
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
push 6
push 0x452034
call fcn.0041a9f0
mov edx, eax
add esp, 0x20
test edx, edx
jne 0x4108b5
push ebx
push 0x4a
call fcn.0040d340
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x4f4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00434c6c
lea ecx, [esp + 0x40]
lea edx, [esp + 0x4f8]
push ecx
push edx
push str.activateAlgo
push 3
push 0x451f24
call fcn.0041a9f0
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x410920
push ebx
push 0x4a
call fcn.0040d340
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x1d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00434c6c
lea ecx, [esp + 0x1d8]
push ecx
call fcn.0041aad0
mov edx, eax
add esp, 8
test edx, edx
jne 0x41097a
push ebx
push 0x4a
call fcn.0040d340
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x1d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00434c6c
lea ecx, [esp + 0x368]
lea edx, [esp + 0x1d8]
push ecx
push ebx
push edx
call fcn.00418080
add esp, 0x10
test ax, ax
je 0x4109db
push ebx
push eax
call fcn.0040d260
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14
lea eax, [esp + 0x364]
push eax
call fcn.0041a7c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x410a02
pop edi
pop esi
pop ebp
mov ax, 0x42
pop ebx
add esp, 0x994
ret 0x14
lea ecx, [esp + 0x364]
lea edx, [esp + 0x814]
push ecx
lea eax, [esp + 0x688]
push edx
push eax
push esi
push 3
push 0x451f24
call fcn.0041a620
push esi
mov edi, eax
call fcn.00434c6c
add esp, 0x1c
test di, di
je 0x410a4f
push ebx
push 0x42
call fcn.0040d340
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14
mov edi, str.error
lea esi, [esp + 0x684]
mov cl, byte [esi]
mov dl, byte [edi]
mov al, cl
cmp cl, dl
jne 0x410a83
test al, al
je 0x410a7f
mov dl, byte [esi + 1]
mov cl, byte [edi + 1]
mov al, dl
cmp dl, cl
jne 0x410a83
add esi, 2
add edi, 2
test al, al
jne 0x410a5b
xor eax, eax
jmp 0x410a88
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x410ab0
lea eax, [esp + 0x814]
push eax
call fcn.004366a5
push ebx
push eax
call fcn.0040d340
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14
lea esi, [ebx + 0x68]
push esi
call fcn.0043c802
mov edi, dword [esi]
push ebx
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.0040d340
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14
pop edi
pop esi
pop ebp
mov ax, 5
pop ebx
add esp, 0x994
ret 0x14
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x994
ret 0x14