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

Disassembly:
push 0xffffffffffffffff
push 0x4e8138
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov al, byte [esp + 3]
push ebx
push ebp
push esi
mov dword [esp + 0x24], ecx
xor ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x40]
mov byte [esp + 0x40], al
call fcn.00411e90
mov edi, str.PIN:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x40]
push ebp
call fcn.00412290
test al, al
je 0x40e7c9
mov edi, dword [esp + 0x40]
mov ecx, ebp
mov edx, ecx
mov esi, str.PIN:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], bl
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x78], ebx
call fcn.004be9a0
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 1
call fcn.004be970
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 2
call fcn.004be970
mov cl, byte [esp + 0x13]
xor esi, esi
xor ebp, ebp
mov byte [esp + 0x4c], cl
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
push 7
push 0x50fc8c
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 4
call fcn.004bea10
push 4
push 0x50f60c
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 5
call fcn.004bea10
push ebx
push 4
push ecx
mov byte [esp + 0x80], 6
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x84], 7
mov ecx, esp
mov dword [esp + 0x40], esp
push 6
push 0x50fbb8
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x84], 6
call fcn.004cb760
cmp ax, 4
jne 0x40e91b
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 5
call fcn.004beab0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 4
call fcn.004beab0
mov eax, dword [esp + 0x50]
push eax
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x74], 2
call fcn.004beab0
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 1
call fcn.004beab0
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], bl
call fcn.004beab0
push 1
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], 0xffffffff
call fcn.00411e90
or ax, 0xffff
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
push ebx
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x84], 8
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x50fb6c
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x84], 6
call fcn.004cb760
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004be980
lea ecx, [esp + 0x24]
call fcn.004beca0
mov edi, 0x3a00
mov eax, edi
lea ecx, [esp + 0x1c]
sar eax, 8
push eax
push 4
call fcn.004bedb0
push edi
push 5
lea ecx, [esp + 0x24]
call fcn.004bedb0
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004be980
call fcn.0047c9f0
add esp, 8
cmp ax, bx
jle 0x40e893
lea eax, [esp + 0x4c]
lea edx, [esp + 0x14]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004be980
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
mov byte [esp + 0x84], 9
call fcn.004be980
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x80], 6
call fcn.0040e520
cmp eax, 0x1869f
jg 0x40eb3a
cmp eax, 0xffffffff
je 0x40ea28
cmp si, bx
jne 0x40ea1e
mov ebp, eax
mov esi, 1
jmp 0x40ea28
cmp eax, ebp
je 0x40ed24
mov ebp, eax
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004be980
lea ecx, [esp + 0x24]
call fcn.004beca0
add edi, 0x10
cmp edi, 0x4000
jl 0x40e97c
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004be980
call fcn.0047c9f0
add esp, 8
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x50f634
call fcn.004bea10
push ecx
mov byte [esp + 0x84], 0xe
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
push 0x50fbd8
call fcn.004bea10
mov ecx, 0x520200
mov byte [esp + 0x84], 6
call fcn.004cb760
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 5
call fcn.004beab0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 4
call fcn.004beab0
mov eax, dword [esp + 0x50]
push eax
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x74], 2
call fcn.004beab0
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 1
call fcn.004beab0
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], bl
call fcn.004beab0
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x40efba
mov cl, byte [eax - 1]
cmp cl, bl
je 0x40efb0
cmp cl, 0xff
je 0x40efb0
dec cl
mov byte [eax - 1], cl
jmp 0x40efba
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + eax*4 - 0x61a7c]
lea eax, [esp + 0x34]
push edx
push str._.5d
push eax
call fcn.004df246
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004be980
call fcn.0047c9f0
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov eax, dword [0x4f73d0]
mov edx, dword [esp + 0x44]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40eb9a
call fcn.004deb1b
cmp esi, ebx
jbe 0x40ebde
mov ecx, dword [esp + 0x44]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x40]
push ebp
call fcn.00412290
test al, al
je 0x40ebde
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, esi
lea esi, [esp + 0x34]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], bl
mov edi, 0x50fbe8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x44]
repne scasb al, byte es:[edi]
mov eax, dword [0x4f73d0]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40ec03
call fcn.004deb1b
cmp esi, ebx
jbe 0x40ec48
mov ecx, dword [esp + 0x44]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x40]
push ebp
call fcn.00412290
test al, al
je 0x40ec48
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, esi
mov esi, 0x50fbe8
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], bl
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50fbe0
call fcn.004bea10
lea ecx, [esp + 0x60]
push ecx
call fcn.004d0560
add esp, 8
mov edx, dword [0x4f73d0]
lea ecx, [esp + 0x3c]
push edx
push ebx
push eax
mov byte [esp + 0x80], 0xa
call fcn.00411f10
mov eax, dword [esp + 0x60]
mov byte [esp + 0x74], 6
cmp eax, ebx
je 0x40ecac
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40eca3
cmp al, 0xff
je 0x40eca3
dec al
mov byte [ecx], al
jmp 0x40ecac
push ecx
call fcn.004deb10
add esp, 4
push ebx
push 1
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x48], esp
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x50f634
call fcn.004bea10
push esi
call fcn.004d0560
sub esp, 8
lea eax, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x54], esp
push eax
mov byte [esp + 0xa0], 0xb
call fcn.004118e0
mov ecx, 0x520200
mov byte [esp + 0x9c], 6
call fcn.004cb6b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 5
call fcn.004beab0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 4
call fcn.004beab0
mov ecx, dword [esp + 0x50]
push ecx
jmp 0x40ef55
push eax
lea edx, [esp + 0x38]
push str._.5d
push edx
call fcn.004df246
add esp, 0xc
lea eax, [esp + 0x14]
lea edx, [esp + 0x18]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call fcn.004be980
call fcn.0047c9f0
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov eax, dword [0x4f73d0]
mov edx, dword [esp + 0x44]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40ed79
call fcn.004deb1b
cmp esi, ebx
jbe 0x40edbd
mov ecx, dword [esp + 0x44]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x40]
push ebp
call fcn.00412290
test al, al
je 0x40edbd
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, esi
lea esi, [esp + 0x34]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], bl
mov edi, 0x50fbe8
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x44]
repne scasb al, byte es:[edi]
mov eax, dword [0x4f73d0]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x40ede2
call fcn.004deb1b
cmp esi, ebx
jbe 0x40ee27
mov ecx, dword [esp + 0x44]
push ebx
lea ebp, [ecx + esi]
lea ecx, [esp + 0x40]
push ebp
call fcn.00412290
test al, al
je 0x40ee27
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, esi
mov esi, 0x50fbe8
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x44], ebp
mov byte [eax + ebp], bl
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push 6
push 0x50fbe0
call fcn.004bea10
lea ecx, [esp + 0x60]
push ecx
call fcn.004d0560
add esp, 8
mov edi, eax
mov eax, dword [0x4f73d0]
mov ecx, dword [edi + 8]
mov esi, eax
mov byte [esp + 0x74], 0xc
cmp ecx, esi
jae 0x40ee5e
mov esi, ecx
sub eax, dword [esp + 0x44]
cmp eax, esi
ja 0x40ee6b
call fcn.004deb1b
cmp esi, ebx
jbe 0x40eeb8
mov edx, dword [esp + 0x44]
push ebx
lea ecx, [esp + 0x40]
lea ebp, [edx + esi]
push ebp
call fcn.00412290
test al, al
je 0x40eeb8
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x40ee91
mov eax, 0x4f7480
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov esi, eax
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 + 0x40]
call fcn.00412270
mov eax, dword [esp + 0x60]
mov byte [esp + 0x74], 6
cmp eax, ebx
je 0x40eee2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40eed9
cmp al, 0xff
je 0x40eed9
dec al
mov byte [ecx], al
jmp 0x40eee2
push ecx
call fcn.004deb10
add esp, 4
push ebx
push 1
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x48], esp
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 6
push 0x50f634
call fcn.004bea10
push esi
call fcn.004d0560
sub esp, 8
lea edx, [esp + 0x64]
mov ecx, esp
mov dword [esp + 0x54], esp
push edx
mov byte [esp + 0xa0], 0xd
call fcn.004118e0
mov ecx, 0x520200
mov byte [esp + 0x9c], 6
call fcn.004cb6b0
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 5
call fcn.004beab0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 4
call fcn.004beab0
mov eax, dword [esp + 0x50]
push eax
call fcn.004deb10
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x74], 2
call fcn.004beab0
lea ecx, [esp + 0x24]
mov byte [esp + 0x74], 1
call fcn.004beab0
lea ecx, [esp + 0x20]
mov byte [esp + 0x74], bl
call fcn.004beab0
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x40efba
mov al, byte [ecx - 1]
cmp al, bl
je 0x40efac
cmp al, 0xff
je 0x40efac
dec al
mov byte [ecx - 1], al
jmp 0x40efba
dec ecx
push ecx
jmp 0x40efb2
dec eax
push eax
call fcn.004deb10
add esp, 4
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret