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

Disassembly:
sub esp, 0x850
push ebp
push esi
mov esi, dword [esp + 0x85c]
push edi
test esi, esi
jne 0x40b464
pop edi
pop esi
mov ax, 0x10
pop ebp
add esp, 0x850
ret 0xc
mov ecx, dword [0x466aac]
mov eax, dword [esi + 0x54]
push ecx
push eax
call fcn.0040a870
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40b48d
pop edi
pop esi
mov ax, 2
pop ebp
add esp, 0x850
ret 0xc
mov ax, word [ebp + 0x44]
test ax, ax
je 0x40b9d0
cmp ax, 0xffff
je 0x40b9d0
mov eax, dword [esp + 0x864]
cmp ax, word [ebp + 0x1a4]
jae 0x40b9b9
mov ecx, dword [esp + 0x868]
test ecx, ecx
jne 0x40b4df
test ax, ax
je 0x40b524
push ebp
push 0x10
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
mov edx, dword [ebp + 0x5c]
test edx, edx
jne 0x40b502
test ax, ax
je 0x40b502
push ebp
push 0x10
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
cmp word [ecx], 0
jne 0x40b524
test ax, ax
je 0x40b524
push ebp
push 0x10
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x8c]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x3ac]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x21c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
xor ecx, ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
movsx ecx, word [ebp + 0x5a]
lea eax, [esp + 0x34]
mov dx, word [ebp + ecx*2 + 0x46]
push edx
push 0x461040
push eax
call fcn.00434692
xor ecx, ecx
lea edx, [esp + 0x34]
mov cx, word [ebp + 0x44]
push ecx
push 0x461040
push edx
call fcn.00434692
mov eax, dword [esp + 0x87c]
lea ecx, [esp + 0x34]
and eax, 0xffff
push eax
push 0x461040
push ecx
call fcn.00434692
mov eax, dword [esp + 0x88c]
add esp, 0x24
test eax, eax
jne 0x40b5fd
lea edx, [esp + 0x10]
push 0x4610e0
push edx
call fcn.00434692
add esp, 8
jmp 0x40b615
xor ecx, ecx
lea edx, [esp + 0x10]
mov cx, word [eax]
push ecx
push 0x461040
push edx
call fcn.00434692
add esp, 0xc
lea eax, [esp + 0x4c]
push 0x40
push eax
push esi
call fcn.00405ab0
test ax, ax
jne 0x40ba03
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
push 4
push 0x461038
call fcn.00410310
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x40b66b
push ebp
push 0x4a
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x3ac]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
push edx
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.0043859f
lea ecx, [esp + 0x44]
lea edx, [esp + 0x3b0]
push ecx
push edx
push str.releaseLicEx
push 3
push 0x460f28
call fcn.00410310
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x40b6db
push ebp
push 0x4a
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x21c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
push edx
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.0043859f
lea ecx, [esp + 0x220]
push ecx
call fcn.004103f0
mov edx, eax
add esp, 8
test edx, edx
jne 0x40b73a
push ebp
push 0x4a
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x21c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xc]
push edx
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.0043859f
lea ecx, [esp + 0x90]
lea edx, [esp + 0x220]
push ecx
push ebp
push edx
call fcn.0040d980
add esp, 0x10
test ax, ax
je 0x40b7a0
push ebp
push eax
call fcn.00406050
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
lea eax, [esp + 0x8c]
push eax
call fcn.004100e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b7cd
push ebp
push 0x42
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x6cc]
push ecx
lea eax, [esp + 0x540]
push edx
push eax
push esi
push 3
push 0x460f28
call fcn.0040ff40
push esi
mov edi, eax
call fcn.0043859f
add esp, 0x1c
test di, di
je 0x40b819
push ebp
push 0x42
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
push 0
call fcn.0043859f
add esp, 4
mov byte [esp + 0x6cb], 0
mov byte [esp + 0x85b], 0
mov esi, str.error
lea eax, [esp + 0x53c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40b863
test cl, cl
je 0x40b85f
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40b863
add eax, 2
add esi, 2
test cl, cl
jne 0x40b83f
xor eax, eax
jmp 0x40b868
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b8d6
lea eax, [esp + 0x6cc]
push eax
call fcn.00441cc8
mov esi, eax
add esp, 4
cmp si, 0x47
je 0x40b88f
cmp word [esp + 0x864], 0
jne 0x40b8c0
mov edi, 1
push edi
push ebp
call fcn.00406360
push ebp
push 0x466aac
call fcn.0040ba80
push ebp
call fcn.0043859f
mov eax, dword [0x4611c8]
add esp, 0x14
xor ebp, ebp
cmp eax, edi
je 0x40b8c0
mov dword [0x4611c8], edi
push ebp
push esi
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
lea ecx, [esp + 0x10]
lea edx, [esp + 0x8c]
push ecx
mov edi, 1
push edx
push edi
push 0x461038
call fcn.0040ff40
add esp, 0x10
test ax, ax
je 0x40b912
push ebp
push 0x42
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
mov esi, dword [esp + 0x868]
test esi, esi
je 0x40b945
cmp word [esp + 0x864], 0
je 0x40b950
lea eax, [esp + 0x10]
push eax
call fcn.00441cc8
mov word [esi], ax
mov ecx, dword [ebp + 0x5c]
and eax, 0xffff
add esp, 4
sub ecx, eax
mov dword [ebp + 0x5c], ecx
cmp word [esp + 0x864], 0
jne 0x40b992
push edi
push ebp
call fcn.00406360
push ebp
push 0x466aac
call fcn.0040ba80
push ebp
call fcn.0043859f
mov eax, dword [0x4611c8]
add esp, 0x14
cmp eax, edi
je 0x40b97a
mov dword [0x4611c8], edi
push 0
push 0
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
lea esi, [ebp + 0x68]
push esi
call fcn.00444c3a
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.00406130
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
push ebp
push 5
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc
mov edi, 1
push edi
push ebp
call fcn.00406360
push ebp
push 0x466aac
call fcn.0040ba80
push ebp
call fcn.0043859f
mov eax, dword [0x4611c8]
add esp, 0x14
cmp eax, edi
je 0x40b9ff
mov dword [0x4611c8], edi
mov ax, 0x47
pop edi
pop esi
pop ebp
add esp, 0x850
ret 0xc