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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x9a0
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x40af83
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x9a0
ret 0x1c
mov ecx, dword [0x466aac]
mov eax, dword [eax + 0x54]
push ecx
push eax
call fcn.0040a870
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x40afad
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x9a0
ret 0x1c
mov esi, dword [esp + 0x9bc]
test esi, esi
jne 0x40afc9
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x9a0
ret 0x1c
mov eax, dword [esp + 0x9c4]
test eax, eax
jne 0x40afe5
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x9a0
ret 0x1c
mov eax, dword [esp + 0x9cc]
test eax, eax
jne 0x40b001
pop edi
pop esi
pop ebp
mov ax, 0x10
pop ebx
add esp, 0x9a0
ret 0x1c
mov ax, word [ebp + 0x44]
test ax, ax
je 0x40b423
cmp ax, 0xffff
je 0x40b423
mov ecx, 0x64
xor eax, eax
lea edi, [esp + 0x370]
xor edx, edx
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x500]
rep stosd dword es:[edi], eax
mov ecx, 0x64
lea edi, [esp + 0x1e0]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x58]
mov dword [esp + 0x24], ecx
mov ecx, 0x28
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], edx
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0xfc]
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x10]
stosb byte es:[edi], al
movsx edx, word [ebp + 0x5a]
xor eax, eax
mov ax, word [ebp + edx*2 + 0x46]
push eax
push 0x461040
push ecx
call fcn.00434692
xor edx, edx
lea eax, [esp + 0x28]
mov dx, word [ebp + 0x44]
push edx
push 0x461040
push eax
call fcn.00434692
mov ecx, dword [esp + 0x9d0]
lea edx, [esp + 0x58]
push ecx
push 0x461040
push edx
call fcn.00434692
mov ebx, dword [esp + 0x9e4]
lea edi, [esp + 0x7c]
mov ecx, ebx
mov edx, dword [esp + 0x9e0]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push ecx
push ebx
push edx
call fcn.00402b00
push ebx
lea eax, [esp + 0x80]
push 0x461040
push eax
call fcn.00434692
mov edx, dword [esp + 0x9f0]
add esp, 0x3c
lea ecx, [esp + 0x1a0]
push 0x40
push ecx
push edx
call fcn.00405ab0
test ax, ax
jne 0x40b427
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
push 5
push 0x461038
call fcn.00410310
mov edx, eax
add esp, 0x1c
test edx, edx
jne 0x40b17b
push ebp
push 0x4a
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x500]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
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 + 0x2c]
lea edx, [esp + 0x504]
push ecx
push edx
push str.secureMsgStr
push 3
push 0x460f28
call fcn.00410310
mov edx, eax
add esp, 0x18
test edx, edx
jne 0x40b1e6
push ebp
push 0x4a
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1e0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
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 + 0x1e4]
push ecx
call fcn.004103f0
mov edx, eax
add esp, 8
test edx, edx
jne 0x40b240
push ebp
push 0x4a
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1e0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, ebx
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 + 0x374]
lea edx, [esp + 0x1e4]
push ecx
push ebp
push edx
call fcn.0040d980
add esp, 0x10
test ax, ax
je 0x40b2a1
push ebp
push eax
call fcn.00406050
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
lea eax, [esp + 0x370]
push eax
call fcn.004100e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x40b2cf
push ebp
push 0x42
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
lea ecx, [esp + 0x370]
lea edx, [esp + 0x820]
push ecx
lea eax, [esp + 0x694]
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 0x40b31c
push ebp
push 0x42
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
mov byte [esp + 0x81f], 0
mov byte [esp + 0x9af], 0
mov esi, str.error
lea eax, [esp + 0x690]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40b360
test cl, cl
je 0x40b35c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40b360
add eax, 2
add esi, 2
test cl, cl
jne 0x40b338
xor eax, eax
jmp 0x40b365
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b38d
lea eax, [esp + 0x820]
push eax
call fcn.00441cc8
push ebp
push eax
call fcn.00406130
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x374]
push edx
push eax
push 2
push 0x461038
call fcn.0040ff40
add esp, 0x14
test ax, ax
je 0x40b3ce
push ebp
push 0x42
call fcn.00406130
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
mov ecx, dword [esp + 0x9c4]
lea edx, [esp + 0xfc]
push ecx
push edx
mov byte [esp + 0x47], 0
call fcn.00402b90
lea eax, [esp + 0x3c]
push eax
call fcn.00441cc8
mov ecx, dword [esp + 0x9d8]
lea esi, [ebp + 0x68]
push esi
mov dword [ecx], eax
call fcn.00444c3a
mov edi, dword [esi]
push ebp
add edi, 0x78
push 0
mov dword [esi], edi
call fcn.00406130
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c
mov ax, 0x47
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9a0
ret 0x1c