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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x70]
push esi
mov esi, dword [esp + 0x6c]
push edi
mov eax, dword [ebp + 0x3c]
xor edi, edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x18], edi
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x20]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x40]
mov dword [esp + 0x50], ecx
mov ecx, dword [eax + 0x44]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x48]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x24], edx
mov edx, dword [eax + 0x24]
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x2c]
cmp eax, edi
mov eax, dword [esp + 0x74]
mov dword [esp + 0x54], edx
jle 0x414546
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
cmp ecx, edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edi
jle 0x41452b
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
cmp dword [eax], 1
jne 0x4144fb
lea eax, [ebx + 1]
mov edi, 1
mov ecx, eax
and ecx, 0x1f
shl edi, cl
sar eax, 5
mov ecx, dword [edx + eax*4 + 4]
mov eax, 1
and edi, ecx
mov ecx, ebx
neg edi
sbb edi, edi
and ecx, 0x1f
shl eax, cl
mov ecx, ebx
sar ecx, 5
neg edi
and eax, dword [edx + ecx*4 + 4]
neg eax
sbb eax, eax
neg eax
lea eax, [eax + edi*2]
cmp eax, 1
mov dword [esp + 0x2c], eax
je 0x414397
cmp eax, 2
jne 0x4144fb
mov eax, dword [ebp + 0x30]
xor edi, edi
test eax, eax
jle 0x4144fb
mov eax, dword [esp + 0x44]
mov dword [esp + 0x70], eax
jmp 0x4143b2
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
cmp dword [ecx], 1
jne 0x4144dc
mov eax, dword [ebp + 0x2c]
mov ecx, dword [0x442664]
mov ebx, 1
mov eax, dword [ecx + eax*4]
add eax, edi
mov ecx, eax
and ecx, 0x1f
shl ebx, cl
sar eax, 5
test dword [edx + eax*4 + 4], ebx
je 0x4144dc
mov eax, dword [ebp + 0x20]
mov ecx, edi
mov edx, edi
and ecx, 0x1f
mov ebx, 1
sar edx, 5
shl ebx, cl
mov ecx, dword [eax + edx*4 + 4]
mov eax, dword [esp + 0x2c]
and ecx, ebx
cmp eax, 1
mov dword [esp + 0x20], ecx
jne 0x414439
test ecx, ecx
jne 0x4144dc
push edi
push ebp
mov ebx, 1
call fcn.0041dfb0
push eax
push str.SYM_INV__s
push esi
call fcn.0041fe90
mov ecx, dword [esp + 0x90]
push ebx
push edi
push ecx
jmp 0x414466
cmp eax, 2
jne 0x4144dc
test ecx, ecx
jne 0x414415
push edi
push ebp
mov ebx, eax
call fcn.0041dfb0
push eax
push str.SYM_BUF__s
push esi
call fcn.0041fe90
mov edx, dword [esp + 0x90]
push 1
push edi
push edx
push esi
call fcn.0041ba30
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
add esp, 0x24
push eax
push ecx
push edx
push ebp
call fcn.0041e1f0
push eax
push str._tPIN_A0_IN__s__n
push esi
call fcn.0041fe90
push str._tPIN_Z
push esi
call fcn.0041fe90
add esp, 0x24
cmp ebx, 1
jne 0x4144b1
push 0x43c37c
push esi
call fcn.0041fe90
add esp, 8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edi
push eax
push ecx
push ebp
call fcn.0041e100
push eax
push str.0_OUT__s__n
push esi
call fcn.0041fe90
push str.END__n_n
push esi
call fcn.0041fe90
add esp, 0x24
mov ecx, dword [esp + 0x70]
mov eax, dword [ebp + 0x30]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x70], ecx
jl 0x4143ae
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x34]
add edi, 4
mov eax, dword [ecx]
mov dword [esp + 0x34], edi
mov edi, dword [ecx + 0xc]
lea edx, [edx + eax*4]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x10], edx
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x41433c
xor edi, edi
mov eax, ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0x2c]
inc ecx
add ebx, 2
cmp ecx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x48], ebx
jl 0x41431e
mov eax, dword [ebp + 0x30]
xor edi, edi
test eax, eax
jle 0x414c52
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
sub ecx, edx
sub eax, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
jmp 0x414575
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
cmp dword [ecx + edx], 0xffffffff
jne 0x414c3b
mov eax, edi
mov ecx, edi
sar eax, 5
and ecx, 0x1f
lea edx, [eax*4 + 4]
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x64], edx
mov edx, dword [ecx + edx]
mov ecx, dword [0x442664]
mov dword [esp + 0x60], eax
and edx, eax
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x20], edx
mov ebx, dword [ecx + eax*4]
mov eax, dword [esp + 0x18]
add ebx, edi
mov ecx, dword [eax]
cmp ecx, 1
jne 0x41471c
test edx, edx
jne 0x4145d7
push str.SYM_BUF
jmp 0x4145dc
push str.SYM_INV
push esi
call fcn.0041fe90
add esp, 8
push edi
push ebp
call fcn.0041dfb0
push eax
push 0x43af00
push esi
call fcn.0041fe90
mov ecx, dword [esp + 0x90]
push 1
push edi
push ecx
push esi
call fcn.0041ba30
mov eax, dword [esp + 0x98]
add esp, 0x24
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x10], edx
xor edx, edx
test eax, eax
mov dword [esp + 0x70], eax
jle 0x4146b8
mov ecx, ebx
mov eax, 1
and ecx, 0x1f
shl eax, cl
sar ebx, 5
lea ecx, [ebx*4 + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x34]
test dword [ebx + ecx], eax
jne 0x414666
mov ebx, dword [esp + 0x74]
inc edx
mov ebx, dword [ebx]
lea ecx, [ecx + ebx*4]
mov ebx, dword [esp + 0x70]
cmp edx, ebx
jl 0x414649
jmp 0x4146b8
mov eax, dword [esp + 0x38]
mov eax, dword [eax + edx*4]
test eax, eax
jl 0x4146a2
mov ecx, dword [ebp + 0x1c]
cmp dword [ecx + eax*4], 0
jne 0x4146a2
mov ecx, eax
mov ebx, 1
and ecx, 0x1f
sar eax, 5
shl ebx, cl
mov ecx, dword [esp + 0x24]
lea eax, [eax*4 + 4]
test dword [eax + ecx], ebx
jne 0x4146fe
mov ecx, dword [esp + 0x28]
test dword [eax + ecx], ebx
jne 0x41470d
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + edx*4]
push ecx
push str._tPIN_A0_IN__s__n__tPIN_Z
push esi
call fcn.0041fe90
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4146ce
push 0x43c37c
push esi
call fcn.0041fe90
add esp, 8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edi
push edx
push eax
push ebp
call fcn.0041e100
push eax
push str.0_OUT__s__n
push esi
call fcn.0041fe90
push str.END__n_n
push esi
call fcn.0041fe90
add esp, 0x24
jmp 0x414c3b
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + edx*4]
push ecx
push str._tPIN_A0_IN__s_PIN__n__tPIN_Z
jmp 0x4146af
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + edx*4]
push ecx
push str._tPIN_A0_IN__s_D__n__tPIN_Z
jmp 0x4146af
mov eax, dword [0x442640]
jle 0x4148d0
cmp ecx, eax
jg 0x4148d8
test edx, edx
jne 0x41473a
push str.SYM_OR
jmp 0x41473f
push str.SYM_NOR
push esi
call fcn.0041fe90
add esp, 8
push edi
push ebp
call fcn.0041dfb0
mov ecx, dword [esp + 0x20]
push eax
mov edx, dword [ecx]
push edx
push str._d__s
push esi
call fcn.0041fe90
mov eax, dword [esp + 0x94]
push 1
push edi
push eax
push esi
call fcn.0041ba30
mov eax, dword [esp + 0x9c]
xor ecx, ecx
add esp, 0x28
mov dword [esp + 0x70], ecx
mov edx, dword [eax + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0xc]
cmp edx, ecx
jle 0x414857
mov ecx, ebx
mov eax, 1
and ecx, 0x1f
shl eax, cl
sar ebx, 5
mov dword [esp + 0x44], eax
lea eax, [ebx*4 + 4]
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x38]
sub eax, ebx
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x44]
test dword [eax + edx], ecx
je 0x41482f
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + ebx]
test eax, eax
jl 0x414812
mov edx, dword [ebp + 0x1c]
cmp dword [edx + eax*4], 0
jne 0x414812
mov ecx, eax
mov edx, 1
and ecx, 0x1f
sar eax, 5
shl edx, cl
mov ecx, dword [esp + 0x24]
lea eax, [eax*4 + 4]
test dword [eax + ecx], edx
jne 0x414866
mov ecx, dword [esp + 0x28]
test dword [eax + ecx], edx
jne 0x41487c
mov ecx, dword [esp + 0x70]
mov edx, dword [ebx]
mov eax, ecx
inc ecx
push edx
push eax
mov dword [esp + 0x78], ecx
push str._tPIN_A_d_IN__s__n
push esi
call fcn.0041fe90
add esp, 0x10
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x10]
add ebx, 4
mov eax, dword [ecx]
lea eax, [edx + eax*4]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x4147c5
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x414892
push str._tPIN_Z0
jmp 0x414897
mov ecx, dword [esp + 0x70]
mov edx, dword [ebx]
mov eax, ecx
inc ecx
push edx
push eax
mov dword [esp + 0x78], ecx
push str._tPIN_A_d_IN__s_PIN__n
jmp 0x414826
mov ecx, dword [esp + 0x70]
mov eax, ecx
inc ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx]
push ecx
push eax
push str._tPIN_A_d_IN__s_D__n
jmp 0x414826
push str._tPIN_ZN0
push esi
call fcn.0041fe90
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
push edi
push ecx
push edx
push ebp
call fcn.0041e100
push eax
push str._OUT__s__n
push esi
call fcn.0041fe90
push str.END__n_n
push esi
call fcn.0041fe90
add esp, 0x24
jmp 0x414c3b
cmp ecx, eax
jle 0x414c3b
mov eax, ecx
cdq
idiv dword [0x442640]
mov edx, dword [0x442640]
mov ebp, edx
imul ebp, eax
sub ecx, ebp
xor ebp, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [0x44269c]
push ebp
push ebp
push edi
push eax
push edx
push str.SYM_OR_d__s_d__d__d
push esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x8c], ebp
call fcn.0041fe90
mov ecx, dword [esp + 0x98]
push 1
push edi
push ecx
push esi
call fcn.0041ba30
mov eax, dword [esp + 0xa0]
add esp, 0x2c
mov dword [esp + 0x14], ebp
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
test ecx, ecx
mov dword [esp + 0x10], edx
jle 0x414b66
mov ecx, ebx
mov edx, dword [esp + 0x38]
and ecx, 0x1f
mov eax, 1
sar ebx, 5
shl eax, cl
lea ecx, [ebx*4 + 4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], edx
jmp 0x414979
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
test dword [ecx + edx], eax
je 0x414b3e
mov edx, dword [esp + 0x48]
mov eax, dword [ebx + edx]
test eax, eax
jl 0x4149d2
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 0x1c]
cmp dword [edx + eax*4], 0
jne 0x4149d2
mov ecx, eax
mov edx, 1
and ecx, 0x1f
sar eax, 5
shl edx, cl
mov ecx, dword [esp + 0x24]
lea eax, [eax*4 + 4]
test dword [eax + ecx], edx
jne 0x414a6d
mov ecx, dword [esp + 0x28]
test dword [eax + ecx], edx
jne 0x414a86
mov eax, dword [esp + 0x70]
mov edx, dword [ebx]
mov ecx, eax
inc eax
push edx
push ecx
mov dword [esp + 0x78], eax
push str._tPIN_A_d_IN__s__n
push esi
call fcn.0041fe90
mov ecx, dword [esp + 0x80]
mov eax, dword [0x442640]
add esp, 0x10
cmp ecx, eax
jl 0x414b09
mov eax, dword [0x44269c]
push ebp
push 0
push edi
push eax
push str._tPIN_Z0_OUT__s_d__d__d__n
push esi
call fcn.0041fe90
push str.END__n_n
push esi
call fcn.0041fe90
mov eax, dword [esp + 0x3c]
add esp, 0x20
inc ebp
mov dword [esp + 0x70], 0
cmp ebp, eax
jge 0x414a9f
mov ecx, dword [0x44269c]
mov edx, dword [0x442640]
push ebp
push 0
push edi
push ecx
push edx
push str.SYM_OR_d__s_d__d__d
push esi
call fcn.0041fe90
mov eax, dword [esp + 0x98]
push 1
push edi
push eax
push esi
call fcn.0041ba30
add esp, 0x2c
jmp 0x414b3e
mov eax, dword [esp + 0x70]
mov edx, dword [ebx]
mov ecx, eax
inc eax
push edx
push ecx
mov dword [esp + 0x78], eax
push str._tPIN_A_d_IN__s_PIN__n
jmp 0x4149e6
mov ecx, dword [esp + 0x70]
mov eax, ecx
inc ecx
mov dword [esp + 0x70], ecx
mov ecx, dword [ebx]
push ecx
push eax
push str._tPIN_A_d_IN__s_D__n
jmp 0x4149e6
jne 0x414b3e
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x414ada
mov ecx, dword [0x44269c]
push ebp
push 0
push edi
push ecx
push str.SYM_BUF__s_d__d__d
push esi
call fcn.0041fe90
mov edx, dword [esp + 0x94]
push 1
push edi
push edx
push esi
call fcn.0041ba30
add esp, 0x28
jmp 0x414b3e
jle 0x414b3e
mov ecx, dword [0x44269c]
push ebp
push 0
push edi
push ecx
push eax
push str.SYM_OR_d__s_d__d__d
push esi
call fcn.0041fe90
mov edx, dword [esp + 0x98]
push 1
push edi
push edx
push esi
call fcn.0041ba30
add esp, 0x2c
jmp 0x414b3e
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x414b3e
cmp ebp, dword [esp + 0x1c]
jne 0x414b3e
cmp ecx, eax
jne 0x414b3e
mov eax, dword [0x44269c]
push ebp
push 0
push edi
push eax
push str._tPIN_Z0_OUT__s_d__d__d__n
push esi
call fcn.0041fe90
push str.END__n_n
push esi
call fcn.0041fe90
add esp, 0x20
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
add ebx, 4
mov edx, dword [ecx]
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0xc]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x414975
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x414b72
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x414b91
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx]
mov ebx, dword [edx + 8]
and ebx, 1
mov dword [esp + 0x4c], ebx
jmp 0x414b95
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x78]
push edi
push eax
call fcn.0041dfb0
mov ecx, dword [esp + 0x80]
mov ebp, eax
add esp, 8
mov edx, dword [ecx + 0x1c]
cmp dword [edx + edi*4], 0
je 0x414bbf
mov eax, dword [0x44266c]
mov byte [eax], 0
jmp 0x414c0c
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x60]
test dword [eax + edx], ecx
je 0x414be5
mov eax, dword [0x44266c]
push str._PIN
push eax
call fcn.004205e7
add esp, 8
jmp 0x414c0c
mov edx, dword [esp + 0x28]
test dword [eax + edx], ecx
je 0x414c03
mov eax, dword [0x44266c]
push 0x43bfe0
push eax
call fcn.004205e7
add esp, 8
jmp 0x414c0c
mov ecx, dword [0x44266c]
mov byte [ecx], 0
mov edx, dword [0x44266c]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x442640]
push ebx
push edx
mov edx, dword [esp + 0x24]
push ebp
push eax
push 1
push edi
push 1
push ecx
push edx
push esi
call fcn.00419160
mov ebp, dword [esp + 0xa0]
add esp, 0x28
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x30]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x18], ecx
jl 0x414571
mov eax, dword [ebp + 0x2c]
xor edi, edi
test eax, eax
jle 0x414ccf
mov ebx, dword [esp + 0x68]
mov ecx, edi
mov eax, 1
and ecx, 0x1f
shl eax, cl
mov ecx, edi
sar ecx, 5
test dword [ebx + ecx*4 + 4], eax
je 0x414cc7
mov edx, dword [0x442698]
push edi
push edx
push str.SYM_INV__s_d__n
push esi
call fcn.0041fe90
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
push edi
push eax
push ecx
push ebp
call fcn.0041e1f0
push eax
push str._tPIN_A0_IN__s__n
push esi
call fcn.0041fe90
mov edx, dword [0x442698]
push edi
push edx
push str._tPIN_ZN0_OUT__s_d__n
push esi
call fcn.0041fe90
push str.END__n_n
push esi
call fcn.0041fe90
add esp, 0x44
mov eax, dword [ebp + 0x2c]
inc edi
cmp edi, eax
jl 0x414c5f
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], 0
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x4152b9
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x50]
sub eax, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x30]
sub eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
cmp eax, 0xfffffffe
jle 0x41528d
test eax, eax
jl 0x414d7f
mov edx, dword [ebp + 0x1c]
cmp dword [edx + eax*4], 0
je 0x414d2b
mov eax, dword [0x44266c]
mov byte [eax], 0
jmp 0x414d88
mov ecx, eax
mov edx, 1
and ecx, 0x1f
sar eax, 5
shl edx, cl
mov ecx, dword [esp + 0x24]
lea eax, [eax*4 + 4]
test dword [eax + ecx], edx
je 0x414d60
mov edx, dword [0x44266c]
push str._PIN
push edx
call fcn.004205e7
add esp, 8
jmp 0x414d88
mov ecx, dword [esp + 0x28]
test dword [eax + ecx], edx
je 0x414d21
mov edx, dword [0x44266c]
push 0x43bfe0
push edx
call fcn.004205e7
add esp, 8
jmp 0x414d88
mov ecx, dword [0x44266c]
mov byte [ecx], 0
mov edx, dword [esp + 0x68]
mov ecx, dword [0x442644]
mov edi, dword [edx + ebx]
cmp edi, 1
jle 0x414f6e
cmp edi, ecx
jg 0x414f76
mov ecx, dword [ebx]
test ecx, ecx
jl 0x414dce
mov edx, dword [ebp + 0x20]
mov eax, ecx
and ecx, 0x1f
mov ebx, 1
sar eax, 5
shl ebx, cl
mov eax, dword [edx + eax*4 + 4]
and eax, ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
jmp 0x414dd2
mov eax, dword [esp + 0x20]
cmp dword [ebx], 0
jl 0x414deb
test eax, eax
je 0x414deb
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + ebx]
push ecx
push edi
push str.SYM_NAND_d__s
jmp 0x414df9
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ebx]
push eax
push edi
push str.SYM_AND_d__s
push esi
call fcn.0041fe90
mov eax, dword [esp + 0x24]
mov edx, 1
mov ecx, eax
add esp, 0x10
and ecx, 0x1f
shl edx, cl
mov ecx, dword [esp + 0x54]
sar eax, 5
and edx, dword [ecx + eax*4 + 4]
push edx
push esi
call fcn.0041ba80
mov eax, dword [ebp + 0x2c]
xor edi, edi
add esp, 8
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x414ef3
xor edx, edx
mov dword [esp + 0x70], edx
lea eax, [edx + 1]
mov ebx, 1
mov ecx, eax
and ecx, 0x1f
shl ebx, cl
mov ecx, dword [esp + 0x10]
sar eax, 5
and ebx, dword [ecx + eax*4 + 4]
mov ecx, edx
mov eax, 1
neg ebx
sbb ebx, ebx
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x10]
sar edx, 5
neg ebx
and eax, dword [ecx + edx*4 + 4]
neg eax
sbb eax, eax
neg eax
lea eax, [eax + ebx*2]
cmp eax, 1
jne 0x414ea3
mov edx, dword [esp + 0x18]
mov ecx, dword [0x442698]
mov eax, edi
push edx
push ecx
push eax
push str._tPIN_A_d_IN__s_d__n
push esi
inc edi
call fcn.0041fe90
add esp, 0x14
jmp 0x414ed0
cmp eax, 2
jne 0x414ed0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push edx
push eax
push ecx
mov ebx, edi
push ebp
inc edi
call fcn.0041e1f0
push eax
push ebx
push str._tPIN_A_d_IN__s__n
push esi
call fcn.0041fe90
add esp, 0x20
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x70]
mov ecx, dword [ebp + 0x2c]
inc eax
add edx, 2
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], edx
jl 0x414e3e
mov ebx, dword [esp + 0x7c]
cmp dword [ebx], 0
jl 0x414f45
mov eax, dword [esp + 0x20]
test eax, eax
je 0x414f07
push str._tPIN_ZN0
jmp 0x414f0c
push str._tPIN_Z0
push esi
call fcn.0041fe90
mov eax, dword [esp + 0x3c]
mov edx, dword [0x44266c]
add esp, 8
mov ecx, dword [eax + ebx]
push edx
push ecx
push str._OUT__s_s__n
push esi
call fcn.0041fe90
add esp, 0x10
push str.END__n_n
push esi
call fcn.0041fe90
add esp, 8
jmp 0x41528d
mov edx, dword [esp + 0x34]
mov eax, dword [edx + ebx]
push eax
push str._tPIN_Z0_OUT__s__n
push esi
call fcn.0041fe90
add esp, 0xc
push str.END__n_n
push esi
call fcn.0041fe90
add esp, 8
jmp 0x41528d
cmp edi, ecx
jle 0x41528d
mov eax, edi
mov ebx, dword [esp + 0x14]
cdq
idiv ecx
mov edx, ecx
imul edx, eax
sub edi, edx
mov dword [esp + 0x1c], eax
mov eax, dword [0x442684]
mov dword [esp + 0x2c], edi
xor edi, edi
push edi
push edi
push ebx
push eax
push ecx
push str.SYM_AND_d__s_d__d__d
push esi
mov dword [esp + 0x8c], edi
call fcn.0041fe90
mov edx, dword [esp + 0x70]
mov ecx, ebx
and ecx, 0x1f
mov ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x30]
sar ecx, 5
lea eax, [edx + ecx*4 + 4]
mov ecx, ebx
mov dword [esp + 0x54], eax
and ecx, dword [eax]
push ecx
push esi
call fcn.0041ba80
mov eax, dword [ebp + 0x2c]
add esp, 0x24
test eax, eax
mov dword [esp + 0x18], edi
jle 0x4151ef
xor edx, edx
mov dword [esp + 0x50], edx
lea eax, [edx + 1]
mov ebp, 1
mov ecx, eax
and ecx, 0x1f
shl ebp, cl
mov ecx, dword [esp + 0x10]
sar eax, 5
and ebp, dword [ecx + eax*4 + 4]
mov ecx, edx
mov eax, 1
neg ebp
sbb ebp, ebp
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x10]
sar edx, 5
neg ebp
and eax, dword [ecx + edx*4 + 4]
neg eax
sbb eax, eax
neg eax
lea eax, [eax + ebp*2]
cmp eax, 1
jne 0x41505e
mov ebp, dword [esp + 0x70]
mov edx, dword [esp + 0x18]
mov ecx, dword [0x442698]
mov eax, ebp
push edx
push ecx
push eax
inc ebp
push str._tPIN_A_d_IN__s_d__n
push esi
mov dword [esp + 0x84], ebp
call fcn.0041fe90
add esp, 0x14
jmp 0x4150b8
cmp eax, 2
jne 0x4150a2
mov edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x68], ebp
push eax
inc ebp
push ecx
push edx
mov dword [esp + 0x80], ebp
call fcn.0041e1f0
push eax
mov eax, dword [esp + 0x78]
push eax
push str._tPIN_A_d_IN__s__n
push esi
call fcn.0041fe90
add esp, 0x20
jmp 0x4150b8
cmp eax, 1
jl 0x4151cc
cmp eax, 2
jg 0x4151cc
mov ebp, dword [esp + 0x70]
cmp ebp, dword [0x442644]
jl 0x415192
mov ebp, dword [esp + 0x14]
mov ecx, dword [0x442684]
push edi
push 0
push ebp
push ecx
push str._tPIN_Z0_OUT__s_d__d__d__n
push esi
call fcn.0041fe90
push str.END__n_n
push esi
call fcn.0041fe90
mov eax, dword [esp + 0x3c]
add esp, 0x20
inc edi
mov dword [esp + 0x70], 0
cmp edi, eax
jge 0x415130
mov edx, dword [0x442684]
mov eax, dword [0x442644]
push edi
push 0
push ebp
push edx
push eax
push str.SYM_AND_d__s_d__d__d
push esi
call fcn.0041fe90
mov edx, dword [esp + 0x54]
mov ecx, ebx
and ecx, dword [edx]
push ecx
push esi
call fcn.0041ba80
add esp, 0x24
jmp 0x4151cc
jne 0x4151cc
mov eax, dword [esp + 0x2c]
cmp eax, 1
jne 0x415165
mov eax, dword [0x442684]
push edi
push 0
push ebp
push eax
push str.SYM_BUF__s_d__d__d
push esi
call fcn.0041fe90
mov edx, dword [esp + 0x50]
mov ecx, ebx
and ecx, dword [edx]
push ecx
push esi
call fcn.0041ba80
jmp 0x4151c9
jle 0x4151cc
mov ecx, dword [0x442684]
push edi
push 0
push ebp
push ecx
push eax
push str.SYM_AND_d__s_d__d__d
push esi
call fcn.0041fe90
mov eax, dword [esp + 0x54]
mov edx, ebx
and edx, dword [eax]
push edx
push esi
call fcn.0041ba80
add esp, 0x24
jmp 0x4151cc
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4151cc
cmp edi, dword [esp + 0x1c]
jne 0x4151cc
cmp ebp, eax
jne 0x4151cc
mov ecx, dword [esp + 0x14]
mov edx, dword [0x442684]
push edi
push 0
push ecx
push edx
push str._tPIN_Z0_OUT__s_d__d__d__n
push esi
call fcn.0041fe90
push str.END__n_n
push esi
call fcn.0041fe90
add esp, 0x20
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
inc eax
mov ebp, dword [ecx + 0x2c]
add edx, 2
cmp eax, ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], edx
jl 0x414fee
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
test eax, eax
jle 0x4151ff
inc dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
and ebx, eax
mov eax, dword [esp + 0x7c]
neg ebx
mov eax, dword [eax]
sbb ebx, ebx
neg ebx
test eax, eax
jl 0x415248
mov ecx, dword [esp + 0x78]
mov edx, eax
mov ebp, 1
mov edi, dword [ecx + 0x20]
mov ecx, eax
and ecx, 0x1f
sar edx, 5
shl ebp, cl
mov ecx, dword [edi + edx*4 + 4]
and ecx, ebp
test eax, eax
mov dword [esp + 0x20], ecx
jl 0x415248
test ecx, ecx
je 0x415248
mov eax, 1
jmp 0x41524a
xor eax, eax
mov edx, dword [0x44266c]
mov ecx, dword [esp + 0x34]
push ebx
push edx
mov edx, dword [esp + 0x84]
mov ecx, dword [ecx + edx]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [0x442644]
push 0
push edx
push 1
push eax
push ecx
push esi
call fcn.00419160
mov ebp, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
add esp, 0x28
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
add ebx, 4
mov edx, dword [ecx]
mov dword [esp + 0x7c], ebx
lea edx, [eax + edx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 0xc]
inc eax
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x414d09
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret