Function at 0x46ce30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x40
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
mov ecx, dword [ecx]
cmp ecx, eax
cmova eax, ecx
test eax, eax
mov ecx, 1
cmovne ecx, eax
lea esi, [ecx*4]
mov edi, ecx
push esi
push 8
push 1
call fcn.00436250
add esp, 0xc
mov ebx, eax
mov dword [eax], edi
mov dword [esp + 0x18], edi
add eax, 8
mov dword [ebx + 4], eax
push esi
push eax
call fcn.00464d20
add esp, 8
push esi
push 8
push 1
call fcn.00436250
add esp, 0xc
mov ebp, eax
mov dword [eax], edi
add eax, 8
mov dword [ebp + 4], eax
mov dword [esp], esi
push esi
push eax
call fcn.00464d20
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [esp + 0x58]
mov edi, dword [ecx]
cmp eax, edi
cmovb edi, eax
lea esi, [edi*4]
push esi
push dword [ecx + 4]
push dword [ebx + 4]
call fcn.004a08d0
add esp, 0xc
mov eax, dword [ebx]
sub eax, edi
shl eax, 2
mov dword [esp + 4], ebx
add esi, dword [ebx + 4]
push eax
push esi
call fcn.00464d20
add esp, 8
mov eax, dword [ebp]
mov ecx, dword [esp + 0x5c]
mov edi, dword [ecx]
cmp eax, edi
cmovb edi, eax
lea esi, [edi*4]
push esi
push dword [ecx + 4]
push dword [ebp + 4]
call fcn.004a08d0
add esp, 0xc
mov eax, dword [ebp]
sub eax, edi
mov edi, ebp
shl eax, 2
add esi, dword [ebp + 4]
push eax
push esi
call fcn.00464d20
add esp, 8
mov esi, dword [esp + 0x18]
lea ebx, [esi + 1]
shl ebx, 2
push ebx
push 8
push 1
call fcn.00436250
add esp, 0xc
mov dword [esp + 8], eax
inc esi
jne 0x46cf54
push 0x48
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push 0x4f3436
call fcn.004ad8b3
add esp, 0xc
mov ecx, dword [esp + 8]
mov dword [ecx], esi
mov eax, ecx
add eax, 8
mov dword [ecx + 4], eax
push ebx
push eax
call fcn.00464d20
add esp, 8
push ebx
push 8
push 1
call fcn.00436250
add esp, 0xc
mov ebp, eax
test esi, esi
jne 0x46cf93
push 0x48
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push 0x4f3436
call fcn.004ad8b3
add esp, 0xc
mov dword [ebp], esi
mov eax, ebp
add eax, 8
mov dword [esp + 0xc], ebp
mov dword [ebp + 4], eax
push ebx
push eax
call fcn.00464d20
add esp, 8
mov esi, dword [esp]
push esi
push 8
push 1
call fcn.00436250
add esp, 0xc
mov ebp, dword [esp + 0x18]
mov dword [eax], ebp
lea ecx, [eax + 8]
mov dword [esp + 0x20], eax
mov dword [eax + 4], ecx
push esi
push ecx
call fcn.00464d20
add esp, 8
shl ebp, 6
and esi, 0x7fffffc
lea eax, [esi*4]
mov dword [esp], eax
push eax
push 8
push 1
call fcn.00436250
add esp, 0xc
mov ebx, eax
test esi, esi
jne 0x46d010
push 0x48
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push 0x4f3436
call fcn.004ad8b3
add esp, 0xc
mov dword [ebx], esi
mov eax, ebx
add eax, 8
mov dword [esp + 0x28], ebx
mov dword [ebx + 4], eax
push dword [esp]
push eax
call fcn.00464d20
add esp, 8
mov dword [esp + 0x18], ebp
test ebp, ebp
mov dword [esp], edi
je 0x46d2c7
mov dword [esp + 0x1c], 0
jmp 0x46d083
mov ecx, dword [esp + 0x10]
or cl, 1
mov eax, 0xfffffffe
rol eax, cl
mov edx, dword [esi + 4]
and dword [edx + ebp*4], eax
shl ebx, cl
mov eax, dword [esi + 4]
or dword [eax + ebp*4], ebx
mov ecx, dword [esp + 0x1c]
add ecx, 1
mov eax, ecx
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x18]
je 0x46d2c7
mov esi, dword [esp + 4]
mov eax, dword [esi]
mov ecx, dword [edi]
cmp ecx, eax
mov edx, eax
mov dword [esp + 0x10], ecx
cmova edx, ecx
test edx, edx
je 0x46d100
xor esi, esi
mov edi, 1
jmp 0x46d0c7
not ecx
xor ebx, ebx
add ebp, edi
setb bl
add ebp, ecx
adc ebx, 0
add esi, 1
mov edi, ebx
cmp edx, esi
je 0x46d0f0
mov ebp, 0
cmp dword [esp + 0x10], esi
jbe 0x46d0db
mov ecx, dword [esp]
mov ecx, dword [ecx + 4]
mov ebp, dword [ecx + esi*4]
xor ecx, ecx
cmp eax, esi
jbe 0x46d0b0
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + esi*4]
jmp 0x46d0b0
mov edi, dword [esp]
mov esi, dword [esp + 4]
jmp 0x46d105
mov ebx, 1
mov ecx, dword [esi + 4]
mov ecx, dword [ecx]
xor ebx, ecx
and ecx, 1
mov edx, dword [edi + 4]
mov edx, dword [edx]
and edx, ecx
mov dword [esp + 0x14], edx
and ebx, edx
xor ebx, ecx
cmp eax, dword [esp + 0x10]
je 0x46d13b
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.004ad8b3
add esp, 0xc
mov eax, ebx
neg eax
mov dword [esp + 0x34], eax
cmp dword [esi], 0
je 0x46d175
xor eax, eax
nop
nop
nop
nop
nop
nop
mov ecx, dword [esi + 4]
mov edx, dword [edi + 4]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x34]
and ecx, edx
mov edx, dword [esi + 4]
xor dword [edx + eax*4], ecx
mov edx, dword [edi + 4]
xor dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [esi]
jb 0x46d150
mov edx, dword [esi]
test edx, edx
je 0x46d250
mov eax, dword [esp + 0x14]
neg eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov esi, eax
and esi, 1
xor ebp, ebp
mov eax, edx
mov dword [esp + 0x24], ecx
jmp 0x46d1ad
add ebp, 1
mov eax, dword [esp + 4]
mov eax, dword [eax]
cmp edx, ebp
je 0x46d200
mov edi, 0
cmp eax, ebp
jbe 0x46d1c0
mov eax, dword [esp + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + ebp*4]
xor eax, eax
mov ecx, dword [esp]
cmp dword [ecx], ebp
jbe 0x46d1d2
mov eax, dword [esp]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebp*4]
not eax
and eax, dword [esp + 0x10]
xor ecx, ecx
add edi, esi
setb cl
add edi, eax
mov esi, ecx
adc esi, 0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x46d1a0
mov dword [ecx + ebp*4], edi
jmp 0x46d1a0
test eax, eax
mov edi, dword [esp]
mov ebp, dword [esp + 4]
je 0x46d250
xor ecx, ecx
jmp 0x46d21f
shl esi, 0x1f
or dword [eax + ecx*4], esi
mov eax, dword [ebp]
mov ecx, edx
cmp edx, eax
jae 0x46d250
mov edx, dword [ebp + 4]
mov esi, 0
cmp eax, ecx
jbe 0x46d22e
mov esi, dword [edx + ecx*4]
mov dword [edx + ecx*4], esi
mov eax, dword [ebp + 4]
shr dword [eax + ecx*4], 1
lea edx, [ecx + 1]
mov eax, dword [ebp + 4]
xor esi, esi
cmp dword [ebp], edx
jbe 0x46d210
mov esi, dword [eax + ecx*4 + 4]
jmp 0x46d210
mov eax, dword [esp + 0x1c]
lea ecx, [eax + eax]
mov ebp, ecx
shr ebp, 5
mov esi, dword [esp + 0x28]
cmp ebp, dword [esi]
jb 0x46d283
push 0x140
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.word___x__nw
mov dword [esp + 0x1c], ecx
call fcn.004ad8b3
mov ecx, dword [esp + 0x1c]
add esp, 0xc
and ecx, 0x1e
mov dword [esp + 0x10], ecx
mov eax, 0xfffffffe
rol eax, cl
mov edx, dword [esi + 4]
and dword [edx + ebp*4], eax
mov edx, dword [esp + 0x14]
shl edx, cl
mov eax, dword [esi + 4]
or dword [eax + ebp*4], edx
cmp ebp, dword [esi]
jb 0x46d050
push 0x140
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.word___x__nw
call fcn.004ad8b3
add esp, 0xc
jmp 0x46d050
mov eax, dword [esp + 0x54]
test eax, eax
je 0x46d327
mov ebp, dword [eax]
test ebp, ebp
je 0x46d327
mov ecx, dword [eax + 4]
xor esi, esi
xor edx, edx
jmp 0x46d2e7
add edx, 1
cmp ebp, edx
je 0x46d327
mov edi, 0
mov eax, dword [esp + 4]
cmp dword [eax], edx
jbe 0x46d2fe
mov eax, dword [esp + 4]
mov edi, dword [eax + 4]
mov edi, dword [edi + edx*4]
xor ebx, ebx
mov eax, dword [esp]
cmp dword [eax], edx
jbe 0x46d310
mov eax, dword [esp]
mov ebx, dword [eax + 4]
mov ebx, dword [ebx + edx*4]
xor eax, eax
add edi, esi
setb al
add edi, ebx
mov esi, eax
adc esi, 0
test ecx, ecx
je 0x46d2e0
mov dword [ecx + edx*4], edi
jmp 0x46d2e0
mov eax, dword [esp + 0x2c]
or eax, dword [esp + 0x30]
mov ebx, dword [esp + 4]
mov edi, dword [esp + 8]
je 0x46d9da
xor eax, eax
cmp dword [ebx], 0
mov ecx, 0
je 0x46d351
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
and ecx, 1
mov edx, dword [edi + 4]
mov dword [edx], ecx
mov ecx, dword [esp]
cmp dword [ecx], 0
je 0x46d366
mov eax, dword [ecx + 4]
mov eax, dword [eax]
and eax, 1
mov ebp, dword [esp + 0xc]
mov ecx, dword [ebp + 4]
mov dword [ecx], eax
mov eax, dword [ebx]
mov ecx, edi
mov edi, dword [edi]
cmp eax, edi
cmovb edi, eax
lea esi, [edi*4]
push esi
push dword [ecx + 4]
push dword [ebx + 4]
call fcn.004a08d0
add esp, 0xc
mov eax, dword [ebx]
sub eax, edi
shl eax, 2
add esi, dword [ebx + 4]
mov ebx, ebp
push eax
push esi
call fcn.00464d20
add esp, 8
mov eax, dword [esp]
mov eax, dword [eax]
mov edi, dword [ebp]
cmp eax, edi
cmovb edi, eax
lea esi, [edi*4]
push esi
push dword [ebp + 4]
mov eax, dword [esp + 8]
push dword [eax + 4]
call fcn.004a08d0
add esp, 0xc
mov eax, dword [esp]
mov eax, dword [eax]
sub eax, edi
mov edi, dword [esp]
shl eax, 2
add esi, dword [edi + 4]
push eax
push esi
call fcn.00464d20
add esp, 8
mov eax, dword [edi + 4]
mov ebp, dword [eax]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x46d7ba
mov edi, dword [esp + 8]
mov edx, dword [esp + 0x28]
jmp 0x46d424
xor ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test esi, esi
mov edx, dword [esp + 0x28]
je 0x46d7ba
lea ecx, [esi + esi]
add ecx, 0xfffffffe
mov eax, ecx
shr eax, 5
cmp dword [edx], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebp
jbe 0x46d460
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
and ecx, 0x1e
mov edx, eax
shr edx, cl
and edx, 1
mov dword [esp + 0x10], edx
jmp 0x46d46d
and ecx, 0x1e
mov dword [esp + 0x10], 0
xor eax, eax
or cl, 1
shr eax, cl
mov dword [esp + 0x1c], eax
mov ebp, dword [edi]
mov eax, dword [edi + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [eax]
and ecx, 1
neg ecx
test ebp, ebp
je 0x46d4f0
lea ebx, [ebp - 1]
xor esi, esi
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, 0
cmp ebp, eax
jbe 0x46d4b3
mov edx, dword [esp + 8]
mov edx, dword [edx + 4]
mov edi, dword [edx + eax*4]
xor ebp, ebp
mov edx, dword [esp]
cmp dword [edx], eax
jbe 0x46d4c5
mov edx, dword [esp]
mov edx, dword [edx + 4]
mov ebp, dword [edx + eax*4]
and ebp, ecx
xor edx, edx
add edi, esi
setb dl
add edi, ebp
mov esi, dword [esp + 0x24]
mov dword [esi + eax*4], edi
adc edx, 0
cmp ebx, eax
je 0x46d4f0
mov esi, dword [esp + 8]
mov ebp, dword [esi]
add eax, 1
mov esi, edx
jmp 0x46d4a0
mov ebx, dword [esp + 0xc]
mov ebp, dword [ebx]
test ebp, ebp
je 0x46d560
mov edx, dword [ebx + 4]
lea eax, [ebp - 1]
mov dword [esp + 0x24], eax
xor esi, esi
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, 0
cmp ebp, eax
jbe 0x46d51f
mov edi, dword [ebx + 4]
mov edi, dword [edi + eax*4]
xor ebp, ebp
mov ebx, dword [esp + 4]
cmp dword [ebx], eax
jbe 0x46d534
mov ebx, dword [esp + 4]
mov ebp, dword [ebx + 4]
mov ebp, dword [ebp + eax*4]
and ebp, ecx
xor ebx, ebx
add edi, esi
setb bl
add edi, ebp
mov esi, ebx
adc esi, 0
test edx, edx
je 0x46d54b
mov dword [edx + eax*4], edi
cmp dword [esp + 0x24], eax
mov ebx, dword [esp + 0xc]
je 0x46d560
mov ebp, dword [ebx]
add eax, 1
jmp 0x46d510
mov edi, dword [esp + 8]
mov ecx, dword [edi]
test ecx, ecx
je 0x46d5b0
xor eax, eax
jmp 0x46d57e
shl esi, 0x1f
or dword [ecx + eax*4], esi
mov ecx, dword [edi]
mov eax, edx
cmp edx, ecx
jae 0x46d5b0
mov edx, dword [edi + 4]
mov esi, 0
cmp ecx, eax
jbe 0x46d58d
mov esi, dword [edx + eax*4]
mov dword [edx + eax*4], esi
mov ecx, dword [edi + 4]
shr dword [ecx + eax*4], 1
lea edx, [eax + 1]
mov ecx, dword [edi + 4]
xor esi, esi
cmp dword [edi], edx
jbe 0x46d570
mov esi, dword [ecx + eax*4 + 4]
jmp 0x46d570
neg dword [esp + 0x10]
mov ebx, dword [ebx]
test ebx, ebx
je 0x46d620
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
lea ebp, [ebx - 1]
xor esi, esi
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov edi, 0
cmp ebx, eax
jbe 0x46d5e3
mov edx, dword [esp + 0xc]
mov edi, dword [edx + 4]
mov edi, dword [edi + eax*4]
xor ebx, ebx
mov edx, dword [esp + 8]
cmp dword [edx], eax
jbe 0x46d5f7
mov edx, dword [esp + 8]
mov ebx, dword [edx + 4]
mov ebx, dword [ebx + eax*4]
and ebx, dword [esp + 0x10]
xor edx, edx
add edi, esi
setb dl
add edi, ebx
mov esi, edx
adc esi, 0
test ecx, ecx
je 0x46d610
mov dword [ecx + eax*4], edi
cmp ebp, eax
je 0x46d620
mov edx, dword [esp + 0xc]
mov ebx, dword [edx]
add eax, 1
jmp 0x46d5d0
mov ebx, dword [esp + 4]
mov ecx, dword [ebx]
test ecx, ecx
je 0x46d6f0
lea eax, [ecx - 2]
jmp 0x46d64c
shr edx, 0x1f
or dword [ecx + eax*4 + 4], edx
mov ecx, dword [ebx]
add eax, 0xffffffff
lea edi, [eax + 1]
xor edx, edx
mov esi, dword [ebx + 4]
cmp ecx, edi
jbe 0x46d65c
mov edx, dword [esi + eax*4 + 4]
mov dword [esi + eax*4 + 4], edx
mov ecx, dword [ebx + 4]
shl dword [ecx + eax*4 + 4], 1
cmp eax, 0xffffffff
je 0x46d680
mov ecx, dword [ebx + 4]
xor edx, edx
cmp dword [ebx], eax
jbe 0x46d640
mov edx, dword [ecx + eax*4]
jmp 0x46d640
mov ebp, dword [ebx]
test ebp, ebp
je 0x46d6f0
mov edx, dword [ebx + 4]
xor esi, esi
mov ebx, ebp
xor eax, eax
jmp 0x46d6ad
add eax, 1
mov ecx, dword [esp + 4]
mov ebx, dword [ecx]
cmp ebp, eax
je 0x46d6f2
mov edi, 0
cmp ebx, eax
jbe 0x46d6c0
mov ecx, dword [esp + 4]
mov edi, dword [ecx + 4]
mov edi, dword [edi + eax*4]
xor ebx, ebx
mov ecx, dword [esp]
cmp dword [ecx], eax
jbe 0x46d6d2
mov ecx, dword [esp]
mov ebx, dword [ecx + 4]
mov ebx, dword [ebx + eax*4]
and ebx, dword [esp + 0x10]
xor ecx, ecx
add edi, esi
setb cl
add edi, ebx
mov esi, ecx
adc esi, 0
test edx, edx
je 0x46d6a0
mov dword [edx + eax*4], edi
jmp 0x46d6a0
xor ebx, ebx
mov esi, dword [esp + 0x1c]
and esi, 1
mov edi, dword [esp]
cmp ebx, dword [edi]
je 0x46d717
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.004ad8b3
add esp, 0xc
mov dword [esp + 0x1c], esi
neg esi
mov dword [esp + 0x38], esi
mov ebx, dword [esp + 4]
cmp dword [ebx], 0
mov ebp, dword [esp + 0x14]
je 0x46d755
xor eax, eax
mov ecx, dword [ebx + 4]
mov edx, dword [edi + 4]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x38]
and ecx, edx
mov edx, dword [ebx + 4]
xor dword [edx + eax*4], ecx
mov edx, dword [edi + 4]
xor dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [ebx]
jb 0x46d730
mov edi, dword [esp + 8]
mov eax, dword [edi]
mov ebx, dword [esp + 0xc]
cmp eax, dword [ebx]
je 0x46d77a
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_qvbm9mtj_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.004ad8b3
add esp, 0xc
add dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x3c], esi
cmp dword [edi], 0
je 0x46d410
xor eax, eax
nop
nop
mov ecx, dword [edi + 4]
mov edx, dword [ebx + 4]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esp + 0x3c]
and ecx, edx
mov edx, dword [edi + 4]
xor dword [edx + eax*4], ecx
mov edx, dword [ebx + 4]
xor dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [edi]
jb 0x46d790
jmp 0x46d410
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x20]
mov ebp, dword [eax]
test ebp, ebp
je 0x46d82d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
xor edx, edx
mov esi, 1
jmp 0x46d7eb
add edx, 1
cmp ebp, edx
mov ebx, dword [esp + 0xc]
je 0x46d82d
mov edi, 0
mov eax, dword [esp]
cmp dword [eax], edx
jbe 0x46d800
mov eax, dword [esp]
mov edi, dword [eax + 4]
mov edi, dword [edi + edx*4]
xor ebx, ebx
mov eax, dword [esp + 8]
cmp dword [eax], edx
jbe 0x46d814
mov eax, dword [esp + 8]
mov ebx, dword [eax + 4]
mov ebx, dword [ebx + edx*4]
not ebx
xor eax, eax
add edi, esi
setb al
add edi, ebx
mov esi, eax
adc esi, 0
test ecx, ecx
je 0x46d7e0
mov dword [ecx + edx*4], edi
jmp 0x46d7e0
mov ebp, dword [esp + 0x14]
and ebp, 1
neg ebp
mov esi, dword [esp + 8]
mov edx, dword [esi]
test edx, edx
mov edi, dword [esp + 0x20]
je 0x46d882
xor eax, eax
jmp 0x46d865
xor edx, ecx
and edx, ebp
xor edx, ecx
mov ecx, dword [esi + 4]
mov dword [ecx + eax*4], edx
add eax, 1
mov edx, dword [esi]
cmp eax, edx
jae 0x46d882
mov ecx, 0
cmp edx, eax
jbe 0x46d874
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax*4]
xor edx, edx
cmp dword [edi], eax
jbe 0x46d850
mov edx, dword [edi + 4]
mov edx, dword [edx + eax*4]
jmp 0x46d850
mov dword [esp + 0x14], ebp
mov ebp, dword [edi]
test ebp, ebp
je 0x46d8ef
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
xor edx, edx
mov esi, 1
jmp 0x46d8ab
add edx, 1
cmp ebp, edx
mov ebx, dword [esp + 0xc]
je 0x46d8ef
mov edi, 0
mov eax, dword [esp + 4]
cmp dword [eax], edx
jbe 0x46d8c2
mov eax, dword [esp + 4]
mov edi, dword [eax + 4]
mov edi, dword [edi + edx*4]
xor ebx, ebx
mov eax, dword [esp + 0xc]
cmp dword [eax], edx
jbe 0x46d8d6
mov eax, dword [esp + 0xc]
mov ebx, dword [eax + 4]
mov ebx, dword [ebx + edx*4]
not ebx
xor eax, eax
add edi, esi
setb al
add edi, ebx
mov esi, eax
adc esi, 0
test ecx, ecx
je 0x46d8a0
mov dword [ecx + edx*4], edi
jmp 0x46d8a0
mov edx, dword [ebx]
test edx, edx
mov ebx, dword [esp + 4]
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
je 0x46d946
xor eax, eax
mov esi, dword [esp + 0xc]
jmp 0x46d925
xor edx, ecx
and edx, ebp
xor edx, ecx
mov ecx, dword [esi + 4]
mov dword [ecx + eax*4], edx
add eax, 1
mov edx, dword [esi]
cmp eax, edx
jae 0x46d946
mov ecx, 0
cmp edx, eax
jbe 0x46d938
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + eax*4]
xor edx, edx
cmp dword [edi], eax
jbe 0x46d910
mov edx, dword [edi + 4]
mov edx, dword [edx + eax*4]
jmp 0x46d910
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov edi, dword [esp + 8]
je 0x46d994
mov eax, dword [ecx]
mov edx, dword [esp + 8]
mov edi, dword [edx]
cmp eax, edi
cmovb edi, eax
lea esi, [edi*4]
push esi
mov eax, dword [esp + 0xc]
push dword [eax + 4]
push dword [ecx + 4]
mov ebp, ecx
call fcn.004a08d0
add esp, 0xc
mov eax, dword [ebp]
sub eax, edi
mov edi, dword [esp + 8]
shl eax, 2
add esi, dword [ebp + 4]
push eax
push esi
call fcn.00464d20
add esp, 8
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x46d9da
mov eax, dword [ecx]
mov edx, dword [esp + 0xc]
mov edi, dword [edx]
cmp eax, edi
cmovb edi, eax
lea esi, [edi*4]
push esi
push dword [edx + 4]
push dword [ecx + 4]
mov ebp, ecx
call fcn.004a08d0
add esp, 0xc
mov eax, dword [ebp]
sub eax, edi
mov edi, dword [esp + 8]
shl eax, 2
add esi, dword [ebp + 4]
push eax
push esi
call fcn.00464d20
add esp, 8
mov eax, dword [ebx]
shl eax, 2
push eax
push dword [ebx + 4]
call fcn.00464d20
add esp, 8
push 8
push ebx
call fcn.00464d20
add esp, 8
push ebx
call fcn.004362e0
add esp, 4
mov esi, dword [esp]
mov eax, dword [esi]
shl eax, 2
push eax
push dword [esi + 4]
call fcn.00464d20
add esp, 8
push 8
push esi
call fcn.00464d20
add esp, 8
push esi
call fcn.004362e0
add esp, 4
mov eax, dword [edi]
shl eax, 2
push eax
push dword [edi + 4]
call fcn.00464d20
add esp, 8
push 8
push edi
call fcn.00464d20
add esp, 8
push edi
call fcn.004362e0
add esp, 4
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
shl eax, 2
push eax
push dword [esi + 4]
call fcn.00464d20
add esp, 8
push 8
push esi
call fcn.00464d20
add esp, 8
push esi
call fcn.004362e0
add esp, 4
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
shl eax, 2
push eax
push dword [esi + 4]
call fcn.00464d20
add esp, 8
push 8
push esi
call fcn.00464d20
add esp, 8
push esi
call fcn.004362e0
add esp, 4
mov esi, dword [esp + 0x28]
mov eax, dword [esi]
shl eax, 2
push eax
push dword [esi + 4]
call fcn.00464d20
add esp, 8
push 8
push esi
call fcn.00464d20
add esp, 8
push esi
call fcn.004362e0
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret