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

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x58]
push ebp
test ebx, ebx
je 0x46ccd2
cmp dword [ebx], 0
je 0x46ccd2
mov ebp, dword [esp + 0x68]
test ebp, ebp
je 0x46ccd2
cmp dword [ebp], 0
je 0x46ccd2
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x64]
push edi
mov edi, dword [esp + 0x6c]
lea ecx, [edi + eax]
push ecx
lea eax, [esi + edx]
push eax
push edi
push esi
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
add ebx, 0x10
push ebx
lea edx, [esp + 0x44]
push edx
mov eax, edx
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x46be46
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
mov ecx, eax
sub ecx, esi
mov esi, dword [esp + 0x74]
add esi, ecx
mov ecx, dword [esp + 0x44]
sub ebx, eax
mov eax, dword [esp + 0x4c]
mov edx, ecx
sub edx, edi
mov edi, dword [esp + 0x78]
sub eax, ecx
push ebp
add edi, edx
mov dword [esp + 0x84], eax
call fcn.0041b850
add esp, 4
push eax
push ebp
call fcn.0041b830
add esp, 4
push eax
push 0
push 0
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [esp + 0x80]
lea edx, [edi + ecx]
push edx
lea eax, [esi + ebx]
push eax
push edi
push esi
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
jne 0x46be50
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x64]
sub eax, edi
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
mov edx, ebx
sub edx, esi
mov esi, dword [esp + 0x40]
add esi, edx
sub eax, esi
push ecx
mov dword [esp + 0x44], esi
mov dword [esp + 0x80], eax
call fcn.0041b8b0
movzx eax, ax
shr eax, 3
push ebp
mov dword [esp + 0x1c], eax
call fcn.0041b8b0
mov edx, dword [esp + 0x4c]
push edx
movzx edi, ax
mov eax, dword [esp + 0x70]
push esi
push eax
shr edi, 3
call fcn.004342d0
mov ecx, dword [esp + 0x48]
push ecx
push ebx
push ebp
mov esi, eax
call fcn.004342d0
mov edx, dword [esp + 0x84]
mov edx, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x34]
imul edx, dword [esp + 0x9c]
add edx, dword [esp + 0x84]
neg ecx
neg edx
mov dword [esp + 0x38], edx
mov edx, edi
imul edx, dword [esp + 0x9c]
mov ebp, ecx
sub ebp, edx
mov edx, dword [esp + 0x34]
add esp, 0x20
mov dword [esp + 0x1c], ebp
cmp edx, 4
jne 0x46c31c
cmp edi, edx
jne 0x46c325
mov edx, dword [esp + 0x38]
cmp ebx, edx
mov edi, ebx
mov dword [esp + 0x64], ebx
jge 0x46bff2
jmp 0x46bf28
mov edi, dword [esp + 0x64]
cmp edi, ebx
jle 0x46bf35
lea ebx, [eax - 4]
mov dword [esp + 0x20], ebx
jmp 0x46bf39
mov dword [esp + 0x20], eax
dec edx
cmp edi, edx
lea ebp, [eax + 4]
jl 0x46bf43
mov ebp, eax
mov edx, dword [esp + 0x3c]
dec edx
cmp dword [esp + 0x34], edx
lea edi, [ecx + eax]
jl 0x46bf53
mov edi, eax
movzx edx, byte [edi]
movzx ebx, byte [ebp]
add edx, ebx
movzx ebx, byte [eax]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx]
add edx, ebx
sar edx, 2
mov byte [esi], dl
movzx edx, byte [edi + 1]
movzx ebx, byte [ebp + 1]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + 1]
add edx, ebx
movzx ebx, byte [eax + 1]
add edx, ebx
sar edx, 2
mov byte [esi + 1], dl
movzx edx, byte [edi + 2]
movzx ebx, byte [ebp + 2]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + 2]
add edx, ebx
movzx ebx, byte [eax + 2]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
movzx edx, byte [edi + 3]
movzx edi, byte [ebp + 3]
add edx, edi
mov edi, dword [esp + 0x20]
movzx edi, byte [edi + 3]
add edx, edi
movzx edi, byte [eax + 3]
add edx, edi
mov edi, dword [esp + 0x64]
sar edx, 2
mov byte [esi + 3], dl
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
inc edi
add esi, 4
add eax, 4
cmp edi, edx
mov dword [esp + 0x64], edi
jl 0x46bf24
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
add esi, dword [esp + 0x18]
add eax, ebp
mov ebp, dword [esp + 0x3c]
inc edi
dec ebp
cmp edi, ebp
mov dword [esp + 0x10], edi
jge 0x46c22a
mov edi, edi
dec edx
cmp ebx, edx
lea ebp, [eax + 4]
jl 0x46c01a
mov ebp, eax
movzx edx, byte [ecx + eax]
mov edi, eax
sub edi, ecx
movzx ebx, byte [edi]
add edx, ebx
movzx ebx, byte [ebp]
add edx, ebx
movzx ebx, byte [eax]
add edx, ebx
sar edx, 2
mov byte [esi], dl
movzx ebx, byte [edi + 1]
movzx edx, byte [ecx + eax + 1]
add edx, ebx
movzx ebx, byte [ebp + 1]
add edx, ebx
movzx ebx, byte [eax + 1]
add edx, ebx
sar edx, 2
mov byte [esi + 1], dl
movzx ebx, byte [edi + 2]
movzx edx, byte [ecx + eax + 2]
add edx, ebx
movzx ebx, byte [ebp + 2]
add edx, ebx
movzx ebx, byte [eax + 2]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
movzx edi, byte [edi + 3]
movzx edx, byte [ecx + eax + 3]
add edx, edi
movzx edi, byte [ebp + 3]
add edx, edi
movzx edi, byte [eax + 3]
add edx, edi
sar edx, 2
mov byte [esi + 3], dl
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
lea ebp, [ebx + 1]
lea edi, [edx - 1]
add esi, 4
add eax, 4
cmp ebp, edi
jge 0x46c17f
mov edx, 0xfffffffc
sub edx, ecx
mov dword [esp + 0x24], edx
mov edx, 0xfffffffd
sub edx, ecx
mov dword [esp + 0x20], edx
mov edx, 0xfffffffe
sub edx, ecx
mov dword [esp + 0x28], edx
mov edx, 0xfffffffb
sub edx, ecx
lea edi, [eax + 5]
mov dword [esp + 0x64], edx
jmp 0x46c0e4
mov edx, dword [esp + 0x64]
movzx edx, byte [edi + edx]
movzx ebx, byte [edi + ecx - 5]
add ebx, edx
movzx edx, byte [edi - 9]
add ebx, edx
movzx edx, byte [edi - 1]
add ebx, edx
sar ebx, 2
mov byte [esi], bl
movzx edx, byte [edi + ecx - 4]
mov ebx, dword [esp + 0x24]
movzx ebx, byte [edi + ebx]
add edx, ebx
movzx ebx, byte [edi - 8]
add edx, ebx
movzx ebx, byte [edi]
add edx, ebx
sar edx, 2
mov byte [esi + 1], dl
movzx ebx, byte [edi + ecx - 3]
mov edx, dword [esp + 0x20]
movzx edx, byte [edi + edx]
add edx, ebx
movzx ebx, byte [edi - 7]
add edx, ebx
movzx ebx, byte [edi + 1]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
movzx ebx, byte [edi + ecx - 2]
mov edx, dword [esp + 0x28]
movzx edx, byte [edi + edx]
add edx, ebx
movzx ebx, byte [edi - 6]
add edx, ebx
movzx ebx, byte [edi + 2]
add edx, ebx
sar edx, 2
mov byte [esi + 3], dl
mov edx, dword [esp + 0x38]
inc ebp
lea ebx, [edx - 1]
add esi, 4
add eax, 4
add edi, 4
cmp ebp, ebx
jl 0x46c0e0
mov ebx, dword [esp + 0x30]
lea edi, [edx - 1]
cmp ebp, edi
jne 0x46c20c
movzx edx, byte [ecx + eax]
mov edi, eax
sub edi, ecx
movzx ebx, byte [edi]
add edx, ebx
movzx ebx, byte [eax]
add edx, ebx
movzx ebx, byte [eax - 4]
add edx, ebx
sar edx, 2
mov byte [esi], dl
movzx ebx, byte [edi + 1]
movzx edx, byte [ecx + eax + 1]
add edx, ebx
movzx ebx, byte [eax - 3]
add edx, ebx
movzx ebx, byte [eax + 1]
add edx, ebx
sar edx, 2
mov byte [esi + 1], dl
movzx ebx, byte [edi + 2]
movzx edx, byte [ecx + eax + 2]
add edx, ebx
movzx ebx, byte [eax - 2]
add edx, ebx
movzx ebx, byte [eax + 2]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
movzx edi, byte [edi + 3]
movzx edx, byte [ecx + eax + 3]
add edx, edi
movzx edi, byte [eax - 1]
add edx, edi
movzx edi, byte [eax + 3]
add edx, edi
sar edx, 2
mov byte [esi + 3], dl
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
add esi, 4
add eax, 4
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
add esi, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
inc edi
dec ebp
cmp edi, ebp
mov dword [esp + 0x10], edi
jl 0x46c010
mov edi, dword [esp + 0x3c]
dec edi
cmp dword [esp + 0x10], edi
jne 0x46ccc5
cmp ebx, edx
mov ebp, ebx
mov dword [esp + 0x64], ebp
jge 0x46ccc5
mov edi, eax
sub edi, ecx
add edi, 2
jmp 0x46c258
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x64]
cmp ebp, ebx
jle 0x46c266
lea ebx, [ecx + edi - 6]
mov dword [esp + 0x20], ebx
jmp 0x46c26a
mov dword [esp + 0x20], eax
dec edx
cmp ebp, edx
lea ebp, [eax + 4]
jl 0x46c274
mov ebp, eax
movzx edx, byte [edi - 2]
movzx ebx, byte [ebp]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx]
add edx, ebx
movzx ebx, byte [eax]
add edx, ebx
sar edx, 2
mov byte [esi], dl
movzx ebx, byte [edi - 1]
movzx edx, byte [ecx + edi - 1]
add edx, ebx
movzx ebx, byte [ebp + 1]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + 1]
add edx, ebx
sar edx, 2
mov byte [esi + 1], dl
movzx edx, byte [edi + ecx]
movzx ebx, byte [ebp + 2]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + 2]
add edx, ebx
movzx ebx, byte [edi]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
movzx edx, byte [edi + 1]
movzx ebx, byte [ebp + 3]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + 3]
add edx, ebx
movzx ebx, byte [eax + 3]
add edx, ebx
mov ebx, dword [esp + 0x64]
sar edx, 2
mov byte [esi + 3], dl
mov edx, dword [esp + 0x38]
inc ebx
add esi, 4
add eax, 4
add edi, 4
cmp ebx, edx
mov dword [esp + 0x64], ebx
jl 0x46c250
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
cmp edx, 3
jb 0x46c723
cmp edi, 3
jb 0x46c723
mov edx, dword [esp + 0x38]
cmp ebx, edx
mov dword [esp + 0x64], ebx
jge 0x46c41d
or ebp, 0xffffffff
sub ebp, edi
mov dword [esp + 0x24], ebp
mov ebp, edi
sub ebp, ecx
mov dword [esp + 0x28], ebp
mov ebp, ebx
cmp ebp, ebx
jle 0x46c363
mov ebx, dword [esp + 0x24]
lea ebx, [ebx + eax + 1]
mov dword [esp + 0x10], ebx
jmp 0x46c367
mov dword [esp + 0x10], eax
dec edx
cmp ebp, edx
jge 0x46c37e
mov edx, dword [esp + 0x28]
lea edx, [edx + ecx - 1]
lea edx, [edx + eax + 1]
mov dword [esp + 0x20], edx
jmp 0x46c382
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x3c]
dec edx
cmp dword [esp + 0x34], edx
lea ebp, [ecx + eax]
jl 0x46c392
mov ebp, eax
movzx edx, byte [ebp]
movzx ebx, byte [eax]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx]
add edx, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx]
add edx, ebx
mov ebx, dword [esp + 0x20]
sar edx, 2
mov byte [esi], dl
movzx ebx, byte [ebx + 1]
movzx edx, byte [ebp + 1]
add edx, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + 1]
add edx, ebx
movzx ebx, byte [eax + 1]
add edx, ebx
mov ebx, dword [esp + 0x20]
sar edx, 2
mov byte [esi + 1], dl
movzx ebx, byte [ebx + 2]
movzx edx, byte [ebp + 2]
mov ebp, dword [esp + 0x64]
add edx, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + 2]
add edx, ebx
movzx ebx, byte [eax + 2]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
mov edx, dword [esp + 0x38]
add esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
inc ebp
add eax, edi
cmp ebp, edx
mov dword [esp + 0x64], ebp
jl 0x46c351
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
add esi, dword [esp + 0x18]
add eax, ebp
mov ebp, dword [esp + 0x3c]
inc edx
dec ebp
cmp edx, ebp
mov dword [esp + 0x10], edx
jge 0x46c634
lea esp, [esp]
mov edx, dword [esp + 0x38]
dec edx
cmp ebx, edx
jge 0x46c452
lea edx, [eax + edi]
mov dword [esp + 0x64], edx
jmp 0x46c456
mov dword [esp + 0x64], eax
movzx edx, byte [ecx + eax]
mov ebp, eax
sub ebp, ecx
movzx ebx, byte [ebp]
add edx, ebx
mov ebx, dword [esp + 0x64]
movzx ebx, byte [ebx]
add edx, ebx
movzx ebx, byte [eax]
add edx, ebx
sar edx, 2
mov byte [esi], dl
movzx ebx, byte [ebp + 1]
movzx edx, byte [ecx + eax + 1]
add edx, ebx
mov ebx, dword [esp + 0x64]
movzx ebx, byte [ebx + 1]
add edx, ebx
movzx ebx, byte [eax + 1]
add edx, ebx
sar edx, 2
mov byte [esi + 1], dl
movzx ebx, byte [ebp + 2]
movzx edx, byte [ecx + eax + 2]
add edx, ebx
mov ebx, dword [esp + 0x64]
movzx ebx, byte [ebx + 2]
add edx, ebx
movzx ebx, byte [eax + 2]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
add esi, dword [esp + 0x14]
lea edx, [ebx + 1]
dec ebp
add eax, edi
cmp edx, ebp
mov dword [esp + 0x64], edx
jge 0x46c59c
mov edx, eax
sub edx, ecx
mov dword [esp + 0x24], edx
lea edx, [eax + edi + 1]
mov dword [esp + 0x20], edx
mov edx, ecx
sub edx, edi
mov ebp, eax
sub ebp, edi
mov dword [esp + 0x2c], edx
mov edx, edi
inc ebp
sub edx, ecx
mov dword [esp + 0x28], edx
lea esp, [esp]
movzx edx, byte [ecx + eax]
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx - 1]
add edx, ebx
movzx ebx, byte [ebp - 1]
add edx, ebx
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx]
add edx, ebx
mov ebx, dword [esp + 0x2c]
sar edx, 2
mov byte [esi], dl
mov edx, dword [esp + 0x20]
movzx edx, byte [edx + ebx]
mov ebx, dword [esp + 0x28]
movzx ebx, byte [ebx + ebp]
add edx, ebx
movzx ebx, byte [ebp]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx]
add edx, ebx
mov ebx, dword [esp + 0x20]
sar edx, 2
mov byte [esi + 1], dl
movzx ebx, byte [ebx + 1]
movzx edx, byte [ecx + eax + 2]
add dword [esp + 0x20], edi
add edx, ebx
movzx ebx, byte [ebp + 1]
add edx, ebx
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + 2]
add dword [esp + 0x24], edi
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x38]
add esi, dword [esp + 0x14]
inc edx
dec ebx
add eax, edi
add ebp, edi
cmp edx, ebx
mov dword [esp + 0x64], edx
jl 0x46c500
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x38]
dec ebp
cmp edx, ebp
jne 0x46c616
movzx ebx, byte [ecx + eax]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x64], edx
movzx edx, byte [edx]
add ebx, edx
mov ebp, eax
sub ebp, edi
movzx edx, byte [ebp]
add ebx, edx
movzx edx, byte [eax]
add ebx, edx
sar ebx, 2
mov byte [esi], bl
movzx edx, byte [ecx + eax + 1]
mov ebx, dword [esp + 0x64]
movzx ebx, byte [ebx + 1]
add edx, ebx
movzx ebx, byte [ebp + 1]
add edx, ebx
movzx ebx, byte [eax + 1]
add edx, ebx
mov ebx, dword [esp + 0x64]
sar edx, 2
mov byte [esi + 1], dl
movzx ebx, byte [ebx + 2]
movzx edx, byte [ecx + eax + 2]
add edx, ebx
movzx ebx, byte [ebp + 2]
add edx, ebx
movzx ebx, byte [eax + 2]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
add esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x30]
add eax, edi
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
add esi, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
inc edx
dec ebp
cmp edx, ebp
mov dword [esp + 0x10], edx
jl 0x46c440
mov ebp, dword [esp + 0x3c]
dec ebp
cmp edx, ebp
jne 0x46ccc5
cmp ebx, dword [esp + 0x38]
mov edx, ebx
mov dword [esp + 0x64], ebx
jge 0x46ccc5
mov ebp, eax
sub ebp, edi
mov dword [esp + 0x28], ebp
mov ebp, eax
sub ebp, ecx
add ebp, 2
jmp 0x46c666
mov ebx, dword [esp + 0x30]
cmp edx, ebx
jle 0x46c674
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x20], ebx
jmp 0x46c678
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x38]
dec ebx
cmp edx, ebx
jge 0x46c68a
lea edx, [eax + edi]
mov dword [esp + 0x24], edx
jmp 0x46c68e
mov dword [esp + 0x24], eax
movzx ebx, byte [eax]
movzx edx, byte [ebp - 2]
add edx, ebx
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx]
add edx, ebx
sar edx, 2
mov byte [esi], dl
movzx ebx, byte [ebp - 1]
movzx edx, byte [ecx + ebp - 1]
add edx, ebx
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + 1]
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + 1]
add edx, ebx
mov ebx, dword [esp + 0x24]
sar edx, 2
mov byte [esi + 1], dl
movzx ebx, byte [ebx + 2]
movzx edx, byte [ecx + ebp]
add dword [esp + 0x28], edi
add edx, ebx
mov ebx, dword [esp + 0x20]
movzx ebx, byte [ebx + 2]
add edx, ebx
movzx ebx, byte [ebp]
add edx, ebx
sar edx, 2
mov byte [esi + 2], dl
mov edx, dword [esp + 0x64]
add esi, dword [esp + 0x14]
inc edx
add eax, edi
add ebp, edi
cmp edx, dword [esp + 0x38]
mov dword [esp + 0x64], edx
jl 0x46c662
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
cmp edx, 2
jne 0x46cb18
cmp edi, edx
jne 0x46ccc5
mov edi, dword [esp + 0x38]
cmp ebx, edi
mov edx, ebx
mov dword [esp + 0x64], ebx
jge 0x46c804
cmp edx, ebx
lea ebp, [eax - 2]
jg 0x46c74f
mov ebp, eax
dec edi
cmp edx, edi
lea ebx, [eax + 2]
jl 0x46c759
mov ebx, eax
mov edx, dword [esp + 0x3c]
dec edx
cmp dword [esp + 0x34], edx
lea edx, [ecx + eax]
jl 0x46c769
mov edx, eax
movzx edi, word [edx]
movzx edx, word [eax]
movzx ebx, word [ebx]
mov dword [esp + 0x14], edx
movzx edx, word [ebp]
mov ebp, edx
mov dword [esp + 0x2c], ebx
and ebx, 0x7c1f
and ebp, 0x7c1f
add ebp, ebx
mov ebx, edi
and ebx, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x14]
and ebx, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x2c]
and edx, 0x3e0
and ebx, 0x3e0
add edx, ebx
and edi, 0x3e0
add edx, edi
mov edi, dword [esp + 0x14]
and edi, 0x3e0
add edx, edi
sar edx, 2
sar ebp, 2
and edx, 0x3e0
and ebp, 0x7c1f
or ebp, edx
mov edx, dword [esp + 0x64]
mov word [esi], bp
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
inc edx
add esi, 2
add eax, 2
cmp edx, edi
mov dword [esp + 0x64], edx
jl 0x46c746
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
add esi, dword [esp + 0x18]
inc edx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x3c]
add eax, ebp
lea ebp, [edx - 1]
cmp dword [esp + 0x10], ebp
jge 0x46ca35
dec edi
cmp ebx, edi
lea ebp, [eax + 2]
jl 0x46c82e
mov ebp, eax
movzx edi, word [ecx + eax]
mov edx, eax
sub edx, ecx
movzx ebx, word [edx]
movzx edx, word [ebp]
movzx ebp, word [eax]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x64], ebx
mov ebp, edx
and ebx, 0x7c1f
and ebp, 0x7c1f
add ebp, ebx
mov ebx, edi
and ebx, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x14]
and ebx, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x64]
and edx, 0x3e0
and ebx, 0x3e0
add edx, ebx
and edi, 0x3e0
add edx, edi
mov edi, dword [esp + 0x14]
and edi, 0x3e0
add edx, edi
sar ebp, 2
sar edx, 2
and ebp, 0x7c1f
and edx, 0x3e0
or ebp, edx
mov word [esi], bp
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
lea edx, [ebx + 1]
lea ebp, [edi - 1]
add esi, 2
add eax, 2
cmp edx, ebp
mov dword [esp + 0x64], edx
jge 0x46c982
mov edx, 0xfffffffe
sub edx, ecx
mov dword [esp + 0x28], edx
jmp 0x46c8e4
mov edx, dword [esp + 0x28]
movzx edx, word [edx + eax + 2]
movzx ebx, word [eax + 2]
movzx edi, word [ecx + eax]
mov dword [esp + 0x24], edx
movzx edx, word [eax - 2]
mov dword [esp + 0x2c], ebx
mov ebp, edx
and ebx, 0x7c1f
and ebp, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x24]
and ebx, 0x7c1f
add ebp, ebx
mov ebx, edi
and ebx, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x2c]
and edx, 0x3e0
and ebx, 0x3e0
add edx, ebx
mov ebx, dword [esp + 0x24]
and ebx, 0x3e0
add edx, ebx
and edi, 0x3e0
add edx, edi
sar edx, 2
sar ebp, 2
and edx, 0x3e0
and ebp, 0x7c1f
or ebp, edx
mov edx, dword [esp + 0x64]
mov word [esi], bp
mov edi, dword [esp + 0x38]
inc edx
lea ebx, [edi - 1]
add esi, 2
add eax, 2
cmp edx, ebx
mov dword [esp + 0x64], edx
jl 0x46c8e0
mov ebx, dword [esp + 0x30]
lea ebp, [edi - 1]
cmp edx, ebp
jne 0x46ca18
movzx edi, word [ecx + eax]
mov edx, eax
sub edx, ecx
movzx ebx, word [edx]
movzx edx, word [eax]
mov dword [esp + 0x14], edx
movzx edx, word [eax - 2]
mov dword [esp + 0x64], ebx
mov ebp, edx
and ebx, 0x7c1f
and ebp, 0x7c1f
add ebp, ebx
mov ebx, edi
and ebx, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x14]
and ebx, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x64]
and edx, 0x3e0
and ebx, 0x3e0
add edx, ebx
and edi, 0x3e0
add edx, edi
mov edi, dword [esp + 0x14]
and edi, 0x3e0
add edx, edi
sar ebp, 2
sar edx, 2
and ebp, 0x7c1f
and edx, 0x3e0
or ebp, edx
mov word [esi], bp
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
add esi, 2
add eax, 2
mov edx, dword [esp + 0x3c]
inc dword [esp + 0x10]
add esi, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
lea ebp, [edx - 1]
cmp dword [esp + 0x10], ebp
jl 0x46c824
dec edx
cmp dword [esp + 0x10], edx
jne 0x46ccc5
cmp ebx, edi
mov edx, ebx
mov dword [esp + 0x64], edx
jge 0x46ccc5
mov ebp, eax
sub ebp, ecx
mov dword [esp + 0x28], ebp
jmp 0x46ca64
mov ebx, dword [esp + 0x30]
cmp edx, ebx
lea ecx, [eax - 2]
jg 0x46ca6d
mov ecx, eax
dec edi
cmp edx, edi
lea ebx, [eax + 2]
jl 0x46ca77
mov ebx, eax
movzx edi, word [ebp]
movzx ebx, word [ebx]
movzx ecx, word [ecx]
movzx edx, word [eax]
mov ebp, ecx
and ebp, 0x7c1f
mov dword [esp + 0x2c], ebx
and ebx, 0x7c1f
add ebp, ebx
mov ebx, edi
and ebx, 0x7c1f
add ebp, ebx
mov ebx, edx
and ebx, 0x7c1f
add ebp, ebx
mov ebx, dword [esp + 0x2c]
and ecx, 0x3e0
and ebx, 0x3e0
add ecx, ebx
and edi, 0x3e0
add ecx, edi
and edx, 0x3e0
add ecx, edx
mov edx, dword [esp + 0x64]
sar ebp, 2
and ebp, 0x7c1f
sar ecx, 2
and ecx, 0x3e0
or ebp, ecx
mov word [esi], bp
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x38]
inc edx
add ebp, 2
add esi, 2
add eax, 2
cmp edx, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x64], edx
jl 0x46ca60
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
cmp edx, 1
jne 0x46ccc5
cmp edi, edx
jne 0x46ccc5
mov edx, dword [esp + 0x38]
cmp ebx, edx
mov edi, ebx
jge 0x46cb8d
cmp edi, ebx
jle 0x46cb40
lea ebx, [eax - 1]
mov dword [esp + 0x64], ebx
jmp 0x46cb44
mov dword [esp + 0x64], eax
dec edx
cmp edi, edx
lea edx, [eax + 1]
jl 0x46cb4e
mov edx, eax
mov ebx, dword [esp + 0x3c]
dec ebx
cmp dword [esp + 0x34], ebx
lea ebp, [ecx + eax]
jl 0x46cb5e
mov ebp, eax
movzx ebx, byte [ebp]
movzx ebp, byte [eax]
movzx edx, byte [edx]
add ebx, ebp
add ebx, edx
mov edx, dword [esp + 0x64]
movzx edx, byte [edx]
add ebx, edx
sar ebx, 2
mov byte [esi], bl
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
inc edi
inc esi
inc eax
cmp edi, edx
jl 0x46cb33
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
add esi, dword [esp + 0x18]
add eax, ebp
mov ebp, dword [esp + 0x3c]
inc edi
dec ebp
cmp edi, ebp
mov dword [esp + 0x10], edi
jge 0x46cc6b
lea esp, [esp]
dec edx
cmp ebx, edx
lea edi, [eax + 1]
jl 0x46cbba
mov edi, eax
movzx ebx, byte [ecx + eax]
movzx edi, byte [edi]
mov edx, eax
sub edx, ecx
movzx edx, byte [edx]
add edx, ebx
add edx, edi
movzx edi, byte [eax]
add edx, edi
sar edx, 2
mov byte [esi], dl
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
lea edi, [ebx + 1]
lea ebp, [edx - 1]
inc esi
inc eax
cmp edi, ebp
jge 0x46cc1f
mov ebp, 1
sub ebp, ecx
movzx ebx, byte [ecx + eax]
movzx edx, byte [eax + ebp - 1]
add edx, ebx
movzx ebx, byte [eax + 1]
add edx, ebx
movzx ebx, byte [eax - 1]
add edx, ebx
sar edx, 2
mov byte [esi], dl
mov edx, dword [esp + 0x38]
inc edi
lea ebx, [edx - 1]
inc esi
inc eax
cmp edi, ebx
jl 0x46cbf1
mov ebx, dword [esp + 0x30]
lea ebp, [edx - 1]
cmp edi, ebp
jne 0x46cc4d
movzx edi, byte [ecx + eax]
mov edx, eax
sub edx, ecx
movzx edx, byte [edx]
add edx, edi
movzx edi, byte [eax - 1]
add edx, edi
movzx edi, byte [eax]
add edx, edi
sar edx, 2
mov byte [esi], dl
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
inc esi
inc eax
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x3c]
add esi, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
inc edi
dec ebp
cmp edi, ebp
mov dword [esp + 0x10], edi
jl 0x46cbb0
mov ebp, dword [esp + 0x3c]
dec ebp
cmp edi, ebp
jne 0x46ccc5
cmp ebx, edx
mov edi, ebx
jge 0x46ccc5
or ebp, 0xffffffff
sub ebp, ecx
mov dword [esp + 0x64], ebp
jmp 0x46cc89
mov ebx, dword [esp + 0x30]
cmp edi, ebx
lea ebp, [eax - 1]
jg 0x46cc92
mov ebp, eax
dec edx
cmp edi, edx
lea ecx, [eax + 1]
jl 0x46cc9c
mov ecx, eax
mov edx, dword [esp + 0x64]
movzx edx, byte [edx + eax + 1]
movzx ebx, byte [eax]
movzx ecx, byte [ecx]
add edx, ebx
add edx, ecx
movzx ecx, byte [ebp]
add edx, ecx
sar edx, 2
mov byte [esi], dl
mov edx, dword [esp + 0x38]
inc edi
inc esi
inc eax
cmp edi, edx
jl 0x46cc85
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50
ret
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret